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
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is a structural principle?
Explain what math functions are available for integers? For floating point?
What is "Hungarian Notation"?
Explain what are the advantages and disadvantages of a heap?
What is storage class?
hi send me sample aptitude papers of cts?
can we change the default calling convention in c if yes than how.........?
What is the collection of communication lines and routers called?
What is an array? What the different types of arrays in c?
what do the 'c' and 'v' in argc and argv stand for?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Can true be a variable name in c?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is #define size in c?