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 pointer to pointer in c with example?
Explain how can you check to see whether a symbol is defined?
What is wrong with this code?
How do you list a file’s date and time?
How can I sort a linked list?
Write a Program to accept different goods with the number, price and date of purchase and display them
Can true be a variable name in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is array of structure in c programming?
How can I do peek and poke in c?
What is structure padding in c?
What are structure types in C?
How to write a code for reverse of string without using string functions?
what is the basis for selection of arrays or pointers as data structure in a program
What's the right way to use errno?