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
Explain what is wrong with this statement? Myname = ?robin?;
What are the advantages of Macro over function?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
what do the 'c' and 'v' in argc and argv stand for?
Why is not a pointer null after calling free?
How many header files are in c?
Explain 'bus error'?
Which header file is used for clrscr?
What is wrong with this program statement? void = 10;
What is the difference between array and linked list in c?
Can a function argument have default value?
What is selection sort in c?
Why main is not a keyword in c?
How do you list a file’s date and time?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.