What are advantages and disadvantages of recursive
calling ?
Answer Posted / morfy
Use of recursion in an algorithm has both advantages and
disadvantages. The main advantage is usually simplicity.
The main disadvantage is often that the algorithm may
require large amounts of memory if the depth of the
recursion is very large. High memory consumption is due to
large function call number (recursion means that function
calls itself multiple times).
| Is This Answer Correct ? | 26 Yes | 5 No |
Post New Answer View All Answers
What does calloc stand for?
What is pass by reference in c?
What is the method to save data in stack data structure type?
What are the functions to open and close the file in c language?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is maximum size of array in c?
Why c is known as a mother language?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Explain modulus operator.
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is difference between array and pointer in c?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is difference between Structure and Unions?
Explain how does free() know explain how much memory to release?
What is a program?