what are the advantage and disadvantage of recursion
Answer Posted / vadivelt
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 ? | 52 Yes | 7 No |
Post New Answer View All Answers
What is variable in c example?
What is ambagious result in C? explain with an example.
What is unsigned int in c?
Write a program to generate random numbers in c?
The difference between printf and fprintf is ?
How was c created?
Explain that why C is procedural?
What does d mean?
What are the characteristics of arrays in c?
What is NULL pointer?
Explain what are linked list?
Which header file is used for clrscr?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is signed and unsigned?
What is the difference between c &c++?