What are advantages and disadvantages of recursive
calling ?
Answer Posted / gadadhar dutta
Disadvantage of recursion
1. It is requires extra storage space. The recursive calls and automatic variable a stored on the stack. For every calls separate memory is allocated to automatic variable with the same name.
2. the recursion function is not efficient in execution speed and time.
3. Some function called inside recursion are repeated or duplicated just like Fibonacci.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can I find out how much free space is available on disk?
Explain what is the benefit of using #define to declare a constant?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is array within structure?
What is the size of empty structure in c?
What is the deal on sprintf_s return value?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
How can I avoid the abort, retry, fail messages?
What is the acronym for ansi?
How can you invoke another program from within a C program?
p*=(++q)++*--p when p=q=1 while(q<=6)
With the help of using classes, write a program to add two numbers.
Why does not c have an exponentiation operator?
Is that possible to add pointers to each other?