what are the advantage and disadvantage of recursion
Answer Posted / vadivelt
Recursion will be useful when same kind of job has to be
continued for a finite no input or time.
Eg: calculating series, finding factorial etc..
Disadvantage would be,
1.Hard to analyse or understand the code.
2.If the recursive function is called for infinite no of
times and memory constrains are not taken care, then stack
overflow may occur So system may crash.
| Is This Answer Correct ? | 52 Yes | 7 No |
Post New Answer View All Answers
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Give the rules for variable declaration?
What is the difference between struct and union in C?
What is array of structure in c?
What is dynamic memory allocation?
What are structures and unions? State differencves between them.
What are the advantages of the functions?
int far *near * p; means
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
Explain how are portions of a program disabled in demo versions?
What is dangling pointer in c?
What are the rules for identifiers in c?
Is that possible to store 32768 in an int data type variable?
to find the closest pair
Are the variables argc and argv are always local to main?