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
How can you return multiple values from a function?
What is ctrl c called?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What is s or c?
What is selection sort in c?
What is a dynamic array in c?
What is return in c programming?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What are conditional operators in C?
What does main () mean in c?
Why string is used in c?
Explain how can you tell whether two strings are the same?
What is #line in c?