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 the c value paradox and how is it explained?
What is a #include preprocessor?
The __________ attribute is used to announce variables based on definitions of columns in a table?
How are variables declared in c?
What does do in c?
What is structure in c definition?
Why & is used in scanf in c?
What are the functions to open and close the file in c language?
What is the argument of a function in c?
What is a char in c?
Can 'this' pointer by used in the constructor?
What is action and transformation in spark?
Does sprintf put null character?
How can I access an I o board directly?
Can true be a variable name in c?