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
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 |
how does printf function work
What is pointer to pointer in c language?
Differentiate between declaring a variable and defining a variable?
swapping of two numbers without using third variable using AND and OR operators
Why is sprintf unsafe?
how to print 212 as Twohundreds twelve plz provide me ans soon
When should a type cast not be used?
What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.
What are local and global variables?
What is pointers in c?
write a program whose output will be- 1 12 123 1234
What is the use of header files?