What are advantages and disadvantages of recursive
calling ?

Answer Posted / gadadhar dutta

Disadvantage of recursion
1. It is requires extra storage space. The recursive calls and automatic variable a stored on the stack. For every calls separate memory is allocated to automatic variable with the same name.
2. the recursion function is not efficient in execution speed and time.
3. Some function called inside recursion are repeated or duplicated just like Fibonacci.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the process of writing the null pointer?

598


Tell us bitwise shift operators?

586


Can you write the function prototype, definition and mention the other requirements.

645


Is r written in c?

716


What is mean by data types in c?

540






How do we declare variables in c?

558


please send me the code for multiplying sparse matrix using c

1708


what type of questions arrive in interview over c programming?

1541


Explain how does flowchart help in writing a program?

615


Why is it important to memset a variable, immediately after allocating memory to it ?

1542


Can you pass an entire structure to functions?

682


What is type qualifiers?

645


What is string function c?

558


How can I make sure that my program is the only one accessing a file?

665


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

796