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


Please Help Members By Posting Answers For Below Questions

Was 2000 a leap year?

597


Write a program for finding factorial of a number.

610


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

625


Why clrscr is used in c?

557


How can I use a preprocessorif expression to ?

581






What is the sizeof () a pointer?

529


Explain how are portions of a program disabled in demo versions?

623


Explain about the constants which help in debugging?

827


What are c header files?

556


Between macros and functions,which is better to use and why?

1545


Is it better to use a macro or a function?

623


What is sizeof int in c?

574


What does the file stdio.h contain?

582


What is pass by reference in functions?

290


how logic is used

1472