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 do you mean by a local block?

632


What are the types of i/o functions?

680


What is the difference between null pointer and wild pointer?

638


what do you mean by inline function in C?

618


Is c is a low level language?

566






What is sizeof int?

636


How can I access an I o board directly?

623


What does a function declared as pascal do differently?

607


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2699


What is a newline escape sequence?

665


explain what is fifo?

634


Differentiate between a structure and a union.

768


What is the purpose of main( ) in c language?

622


Can a variable be both const and volatile?

676


What is the difference between abs() and fabs() functions?

607