What are advantages and disadvantages of recursive
calling ?
Answer Posted / gadadhar dutta
Disadvantage of recursion
1. It is requires extra storage space. The recursive calls and automatic variable a stored on the stack. For every calls separate memory is allocated to automatic variable with the same name.
2. the recursion function is not efficient in execution speed and time.
3. Some function called inside recursion are repeated or duplicated just like Fibonacci.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you determine a file’s attributes?
Why do we need a structure?
please explain every phase in the "SDLC" in the dotnet.
What are the string functions? List some string functions available in c.
Why do we write return 0 in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is #include stdlib h?
What is integer constants?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
Define recursion in c.
about c language
Why doesnt long int work?
What is console in c language?
What is meant by realloc()?
Why do we use main function?