1)what are limitations for recursive function?
2)write a program to read a text file and count the number of characters in the text file



1)what are limitations for recursive function? 2)write a program to read a text file and count the ..

Answer / mubin ahmed shaik

Limitations of Recursive Approach:
1. Recursive solutions may involve extensive overhead because they use function calls. Each function call requires push of return memory address, parameters, returned result,etc. and every function return requires that many pops.
2. Each time you call a function you use up some of your memory allocation may be in stack or heap. If there are large number of recursive calls – then you may run out of memory.

Is This Answer Correct ?    15 Yes 4 No

Post New Answer

More C Interview Questions

how does printf function work

1 Answers  


What is pointer to pointer in c language?

0 Answers  


Differentiate between declaring a variable and defining a variable?

0 Answers  


swapping of two numbers without using third variable using AND and OR operators

2 Answers  


Why is sprintf unsafe?

0 Answers  






how to print 212 as Twohundreds twelve plz provide me ans soon

1 Answers  


When should a type cast not be used?

0 Answers  


What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.

1 Answers  


What are local and global variables?

3 Answers  


What is pointers in c?

0 Answers  


write a program whose output will be- 1 12 123 1234

10 Answers  


What is the use of header files?

0 Answers  


Categories