What should be keep precautions while using the recursion
method?

Answer Posted / harshal shah

Ans: 1)There should not be any uninitialized pointer.
2)Always allocated memory should be deallocate at
the end of recusion function or object.
3)Alwas declare one End point condition.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 5 types of organizational structures?

558


What is the use of f in c?

568


Write a program to generate random numbers in c?

673


Explain void pointer?

598


How can I convert a number to a string?

619






What are logical errors and how does it differ from syntax errors?

674


What is the difference between the local variable and global variable in c?

544


How to get string length of given string in c?

621


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1419


Can you please compare array with pointer?

625


What is the symbol indicated the c-preprocessor?

709


What are loops c?

632


What is difference between array and structure in c?

589


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

678


Explain what is a pragma?

605