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

Tell me when would you use a pointer to a function?

0 Answers  


What does volatile do?

0 Answers  


write a program to remove occurrences the word from entered text?

1 Answers  


How do I read the arrow keys? What about function keys?

0 Answers  


Why do we need functions in c?

0 Answers  






code for find determinent of amatrix

0 Answers  


What is difference between function overloading and operator overloading?

0 Answers  


A.C func() { pritnf(" in fuction %d",MACRO); } MAIN.c testfunc() { #define MACRO 10 printf("in test function %d", MACRO); } main() { printf("in main %d",MACRO); func(); testfunc(); getch(); }

2 Answers   Wipro,


char ch=10;printf("%d",ch);what is the output

14 Answers   Accenture,


Difference between pass by reference and pass by value?

0 Answers   TCS, TISL,


What is null in c?

0 Answers  


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

0 Answers  


Categories