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 |
Concat two string with most overlapped substring has to removeĀ "abcd"+ "cdef" = "abcdef
Is linux written in c?
Which is best linux os?
What is printf () in c?
to find out the reverse digit of a given number
6 Answers Infosys, Microsoft, TCS, Wipro,
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<b,printb.find the sum digits of that number & then print.if a==b multiply 10 with a & add 20 with b store in c and then print
What is page thrashing?
Write code for atoi(x) where x is hexadecimal string.
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?
what are the static variables
8 Answers HCL, iFlex, TCS, Wipro,
What is the difference between typedef and #define?
Read two numbers from keyboard and find maximum of them?