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 DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Explain how can you check to see whether a symbol is defined?
Why is c platform dependent?
Explain what is wrong with this program statement?
If I have a char * variable pointing to the name of a function ..
What is difference between static and global variable in c?
What is the correct declaration of main?
Is there a way to switch on strings?
What is graph in c?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is the difference between int main and void main in c?
What does main () mean in c?
What is the value of c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd