What are advantages and disadvantages of recursive
calling ?
Answer Posted / ganesh narayanan
advantage : A recursive definition defines an object in simpler cases of itself reducing nested looping complexity
disadvantage : less efficient as compared to the non-recursive counterparts as the overhead involved in entering,re-entering and exiting a block is avoided in case of the non recursive forms. its also possible to identify a number of local variables which need not be saved and restored with the help of stacks and this unwanted stacking activity is avoided in the non-recursive versions.
| Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
Are local variables initialized to zero by default in c?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
How can you increase the allowable number of simultaneously open files?
How many levels of pointers can you have?
How does free() know explain how much memory to release?
Is c object oriented?
How will you write a code for accessing the length of an array without assigning it to another variable?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is the advantage of using #define to declare a constant?
What is adt in c programming?
Is there a way to jump out of a function or functions?
Write a program to generate random numbers in c?
Give the rules for variable declaration?
Why cant I open a file by its explicit path?
what is ur strangth & weekness