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 |
write a own function for strstr
what is the difference between NULL('\0') and 0?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What are pointers in C?
which one is highest Priority in c? a)=,b)+,c)++,d)==
which do you prefer C or Pascal?
how can we print hellow world programme without using semicolon
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none
how to find binary of number?
What is the advantage of a random access file?
Explain the use of 'auto' keyword in c programming?