What are advantages and disadvantages of recursive
calling ?

Answer Posted / anonymous

Advantage :

Recursion is used to divide the problem into same problem
of subtypes and hence replaces complex nesting code.

Disadvantage :

Recursion takes a lot of stack space, usually not
considerable when the program is small and running on a PC.

It is very hard to debug or extend the functionality in
case of recursive logic.

Is This Answer Correct ?    66 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer & why it is used?

585


What is difference between constant pointer and constant variable?

609


Explain how do you generate random numbers in c?

608


Explain high-order bytes.

660


What is the role of && operator in a program code?

556






How can I delete a file?

615


Why we write conio h in c?

549


What is the meaning of typedef struct in c?

579


Can we change the value of static variable in c?

550


How can I access an I o board directly?

607


Why do we use return in c?

554


Do you know the use of fflush() function?

588


Explain which function in c can be used to append a string to another string?

570


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

721


What is use of pointer?

575