What are advantages and disadvantages of recursive
calling ?
Answer Posted / ganesh narayanan
advantage : A recursive definition defines an object in simpler cases of itself reducing nested looping complexity
disadvantage : less efficient as compared to the non-recursive counterparts as the overhead involved in entering,re-entering and exiting a block is avoided in case of the non recursive forms. its also possible to identify a number of local variables which need not be saved and restored with the help of stacks and this unwanted stacking activity is avoided in the non-recursive versions.
| Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
Explain how can a program be made to print the line number where an error occurs?
Discuss the function of conditional operator, size of operator and comma operator with examples.
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
How do you list files in a directory?
Explain the properties of union.
What is 1d array in c?
What is use of pointer?
Explain how can I read and write comma-delimited text?
What are linked lists in c?
What is restrict keyword in c?
What is meant by recursion?
What is derived datatype in c?
Write a program to print all permutations of a given string.
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.
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me