what are the advantage and disadvantage of recursion
Answer Posted / satyabrata nayak
Recursion will be useful when same kind of job has to be
continued for a finite no input or time.
Eg: calculating series, finding factorial etc..
Disadvantage would be,
1.Hard to analyse or understand the code.
2.If the recursive function is called for infinite no of
times and memory constrains are not taken care, then stack
overflow may occur So system may crash.
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
What does c value mean?
Write a C program in Fibonacci series.
What is the difference between printf and scanf )?
What are enums in c?
how many key words availabel in c a) 28 b) 31 c) 32
What do the functions atoi(), itoa() and gcvt() do?
Where are some collections of useful code fragments and examples?
What are the 5 types of organizational structures?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is the use of getch ()?
What is the difference between array and linked list in c?
Write a code to generate divisors of an integer?
What is the role of this pointer?
write a program fibonacci series and palindrome program in c
How can I open files mentioned on the command line, and parse option flags?