what are the advantage and disadvantage of recursion
Answer Posted / jyoti singh
Advantages of recursion:-
1.Recursion is more efficient if the program using recursion is run on computer with multiprocessing facilities.
2.It is very useful in solving the data structure problems.
3. It is easily, simple and understandable.
Disadvantages of recursion:-
1. It requires more memory because recursive calls along with automatic variables are stored on the stack.
2.The computer may run out of memory if recursive calls are not properly checked.
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
What is %d used for?
What is the g value paradox?
How to draw the flowchart for structure programs?
Explain the difference between malloc() and calloc() in c?
Explain how do you generate random numbers in c?
How can you find out how much memory is available?
What is the meaning of c in c language?
What are volatile variables in c?
Write a Program to find whether the given number or string is palindrome.
What are pragmas and what are they good for?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Explain what is output redirection?
What is const volatile variable in c?
Why header files are used?
What is the scope of static variable in c?