what are the advantage and disadvantage of recursion
Answer Posted / suman boddukuru
Advantage : Perform an action untill a condition
satisfies,Also for the repetative calls for inputting and
etc.
Disadvantage: If it encounters the infinite looping then
the stack overflow occurs it will cause ssem crash...
| Is This Answer Correct ? | 32 Yes | 8 No |
Post New Answer View All Answers
What is the need of structure in c?
What is a function in c?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
What is break in c?
What is structure padding in c?
What is return type in c?
What is main () in c language?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Is printf a keyword?
What are c identifiers?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Is c compiled or interpreted?
What is an auto keyword in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above