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
Describe how arrays can be passed to a user defined function
Explain low-order bytes.
When c language was developed?
Ow can I insert or delete a line (or record) in the middle of a file?
Can a pointer be static?
What is wrong in this statement? scanf(ā%dā,whatnumber);
How many types of operators are there in c?
Which function in C can be used to append a string to another string?
What is the difference between new and malloc functions?
What is 02d in c?
What are header files why are they important?
Which header file is used for clrscr?
What are nested functions in c?
Why c is a procedural language?
Is c weakly typed?