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
What are the different file extensions involved when programming in C?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is the difference between #include and #include 'file' ?
What is wrong in this statement? scanf(“%d”,whatnumber);
What are called c variables?
What is the use of parallelize in spark?
What is the significance of scope resolution operator?
Are the variables argc and argv are always local to main?
What are the 5 elements of structure?
When is a void pointer used?
How to define structures? ·
Write a program to identify if a given binary tree is balanced or not.
What is int main () in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples