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
What is pointer & why it is used?
What is difference between constant pointer and constant variable?
Explain how do you generate random numbers in c?
Explain high-order bytes.
What is the role of && operator in a program code?
How can I delete a file?
Why we write conio h in c?
What is the meaning of typedef struct in c?
Can we change the value of static variable in c?
How can I access an I o board directly?
Why do we use return in c?
Do you know the use of fflush() function?
Explain which function in c can be used to append a string to another string?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is use of pointer?