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 Posted / 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 View All Answers
Does c have enums?
What does return 1 means in c?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
can we change the default calling convention in c if yes than how.........?
Tell me can the size of an array be declared at runtime?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Why is void main used?
difference between native and cross compilers
Can we assign string to char pointer?
Explain a pre-processor and its advantages.
What is the difference between typedef struct and struct?
Why array is used in c?
What is pragma in c?
Is c still used?
How can you access memory located at a certain address?