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

a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

0 Answers  


main() { char *p; p="Hello"; printf("%c\n",*&*p); }

2 Answers   ME,


what is a function method?give example?

0 Answers  


using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

0 Answers  


Can we use visual studio for c?

0 Answers  






How macro execution is faster than function ?

0 Answers   Wipro,


How can I get random integers in a certain range?

0 Answers  


how can we use static and extern?and where can we use this?

3 Answers   Excel,


What is assignment operator?

0 Answers  


what is used instead of pointers in java than c?

1 Answers   Vuram,


Difference between data structure and data base.

7 Answers   CTS, Value Labs, Zoho,


How many keywords (reserve words) are in c?

0 Answers  


Categories