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

int i=~0; uint j=(uint)i; j++; printf(“%d”,j);

1 Answers  


Hierarchy decides which operator a) is most important b) is used first c) is fastest d) operates on largest numbers

1 Answers  


What is anagram in c?

0 Answers  


What are valid signatures for the Main function?

0 Answers  


What are the disadvantages of c language?

0 Answers  






Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


How many types of arrays are there in c?

0 Answers  


What is a example of a variable?

0 Answers  


What are type modifiers in c?

0 Answers  


How can a string be converted to a number?

0 Answers  


WHY DO WE USE A TERMINATOR IN C LANGUAGE?

2 Answers  


What are variables c?

0 Answers  


Categories