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

How many header files are in c?

0 Answers  


Write a program to compute the following 1!+2!+...n!

4 Answers  


What is an array? What the different types of arrays in c?

0 Answers  


What is the difference between text and binary i/o?

0 Answers  


What is pragma c?

0 Answers  


How Many Header Files in c?

2 Answers   TCS,


What is the difference between exit() and _exit()?

2 Answers  


Concat two string with most overlapped substring has to remove  "abcd"+ "cdef" = "abcdef

6 Answers  


number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 Answers  


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

0 Answers   TCS,


Explain argument and its types.

0 Answers  


What is a c token and types of c tokens?

0 Answers  


Categories