what are the advantage and disadvantage of recursion
Answer Posted / jyoti singh
Advantages of recursion:-
1.Recursion is more efficient if the program using recursion is run on computer with multiprocessing facilities.
2.It is very useful in solving the data structure problems.
3. It is easily, simple and understandable.
Disadvantages of recursion:-
1. It requires more memory because recursive calls along with automatic variables are stored on the stack.
2.The computer may run out of memory if recursive calls are not properly checked.
Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
what is the diffrenet bettwen HTTP and internet protocol
What does *p++ do? What does it point to?
what will be the output for the following main() { printf("hi" "hello"); }
Explain how do you list a file’s date and time?
What are static variables in c?
What is table lookup in c?
Explain what are reserved words?
Can we declare variables anywhere in c?
What is the condition that is applied with ?: Operator?
Explain union.
What do you mean by a sequential access file?
why programs in c are running with out #include
Compare array data type to pointer data type
What is realloc in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above