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
What is extern keyword in c?
hi any body pls give me company name interview conduct "c" language only
Can one function call another?
Is this program statement valid? INT = 10.50;
What is c standard library?
Is there a way to jump out of a function or functions?
Explain how can a program be made to print the name of a source file where an error occurs?
What is output redirection?
What is null pointer constant?
What is #pragma statements?
What do you mean by a local block?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
Does c have circular shift operators?
Differentiate fundamental data types and derived data types in C.
What is getch () for?