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
Where is c used?
code for quick sort?
How to declare pointer variables?
how should functions be apportioned among source files?
What is the difference between int main and void main in c?
how to introdu5ce my self in serco
What are the types of bitwise operator?
What is the use of extern in c?
Explain what is meant by 'bit masking'?
What is wrong with this program statement?
Explain setjmp()?
What are the advantages of c preprocessor?
what is stack , heap ,code segment,and data segment
What is character set?
What is #define?