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
What is the process of writing the null pointer?
Tell us bitwise shift operators?
Can you write the function prototype, definition and mention the other requirements.
Is r written in c?
What is mean by data types in c?
How do we declare variables in c?
please send me the code for multiplying sparse matrix using c
what type of questions arrive in interview over c programming?
Explain how does flowchart help in writing a program?
Why is it important to memset a variable, immediately after allocating memory to it ?
Can you pass an entire structure to functions?
What is type qualifiers?
What is string function c?
How can I make sure that my program is the only one accessing a file?
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