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 a pointer value and address in c?
What are called c variables?
Distinguish between actual and formal arguments.
What is the difference between c &c++?
What's a good way to check for "close enough" floating-point equality?
Explain what is the benefit of using an enum rather than a #define constant?
What is the best way to store flag values in a program?
When we use void main and int main?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is difference between stdio h and conio h?
What is LINKED LIST? How can you access the last element in a linked list?
Explain what will the preprocessor do for a program?
Explain spaghetti programming?
When was c language developed?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.