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 is a MAC Address?
What are compound statements?
What is strcmp in c?
What language is c written?
how to find anagram without using string functions using only loops in c programming
I have a varargs function which accepts a float parameter?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
When is a null pointer used?
Calculate 1*2*3*____*n using recursive function??
c program to compute AREA under integral
given post order,in order construct the corresponding binary tree
What is a string?
What are different types of variables in c?
Where in memory are my variables stored?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.