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
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Explain about the constants which help in debugging?
What should malloc(0) do?
What does main () mean in c?
How do you use a pointer to a function?
What is c language & why it is used?
What is the difference between text and binary modes?
How do you declare a variable that will hold string values?
How can you return multiple values from a function?
How can I do serial ("comm") port I/O?
What functions are used in dynamic memory allocation in c?
what is the difference between class and unio?
Do you know the use of fflush() function?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Why isnt there a numbered, multi-level break statement to break out