What should be keep precautions while using the recursion
method?



What should be keep precautions while using the recursion method?..

Answer / 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

More C Interview Questions

Is sizeof a keyword in c?

0 Answers  


How does free() know how many bytes to free?

8 Answers  


Why is c faster?

0 Answers  


What are the average number of comparisons required to sort 3 elements?

2 Answers   DRDO,


Which function in C can be used to append a string to another string?

0 Answers  






Are there constructors in c?

0 Answers  


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

0 Answers   L&T,


what is mean by Garbage collection ? Please answer me. Advance thanks.

4 Answers   Excel,


Is javascript based on c?

0 Answers  


How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance

8 Answers  


Why c is faster than c++?

0 Answers  


What is the difference between struct and union in C?

1 Answers  


Categories