What are advantages and disadvantages of recursive
calling ?
Answer Posted / ganesh narayanan
advantage : A recursive definition defines an object in simpler cases of itself reducing nested looping complexity
disadvantage : less efficient as compared to the non-recursive counterparts as the overhead involved in entering,re-entering and exiting a block is avoided in case of the non recursive forms. its also possible to identify a number of local variables which need not be saved and restored with the help of stacks and this unwanted stacking activity is avoided in the non-recursive versions.
Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
Between macros and functions,which is better to use and why?
Why ca not I do something like this?
formula to convert 2500mmh2o into m3/hr
Can you apply link and association interchangeably?
What is keyword with example?
What is || operator and how does it function in a program?
What is "Hungarian Notation"?
int far *near * p; means
How do I copy files?
What are reserved words?
Is c is a high level language?
Describe the difference between = and == symbols in c programming?
What are extern variables in c?
write a program to create a sparse matrix using dynamic memory allocation.
What is bss in c?