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
Explain the difference between the local variable and global variable in c?
What are static variables in c?
please give me some tips for the placement in the TCS.
Is main is a keyword in c?
What is sorting in c plus plus?
Can you write a programmer for FACTORIAL using recursion?
What is break statement?
Define C in your own Language.
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is the use of linkage in c language?
Is malloc memset faster than calloc?
How can you check to see whether a symbol is defined?
What is unsigned int in c?
What are variables and it what way is it different from constants?
Explain how do you declare an array that will hold more than 64kb of data?