What are advantages and disadvantages of recursive
calling ?
Answer Posted / morfy
Use of recursion in an algorithm has both advantages and
disadvantages. The main advantage is usually simplicity.
The main disadvantage is often that the algorithm may
require large amounts of memory if the depth of the
recursion is very large. High memory consumption is due to
large function call number (recursion means that function
calls itself multiple times).
| Is This Answer Correct ? | 26 Yes | 5 No |
Post New Answer View All Answers
Is it better to use malloc() or calloc()?
What is spaghetti programming?
Here is a neat trick for checking whether two strings are equal
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
What is wrong in this statement?
How can I implement sets or arrays of bits?
What is the difference between variable declaration and variable definition in c?
What is a function in c?
Are local variables initialized to zero by default in c?
Why should I prototype a function?
Is return a keyword in c?
Explain what is wrong with this program statement? Void = 10;
Explain how can I open a file so that other programs can update it at the same time?
What is an array? What the different types of arrays in c?
how to capitalise first letter of each word in a given string?