What is recursion?

Answer Posted / hr@tgksolutions.com

A function that calls itself in response to a terminating condition is said to be recursive.
Because it employs LIFO, the stack data structure is used.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

834


What are stacks? Give an example where they are useful.

772


Explain selection sorting. Also write an example.

808


Which one is a preferred language C or C++? Why?

828


What are pointers used for c++?

789


Can we overload operator in c++?

766


What is null pointer and void pointer?

824


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

827


How is new() different from malloc()?

843


What is a Default constructor?

1221


What is an incomplete type in c++?

967


What is the main purpose of c++?

795


What is operator overloading in c++ example?

860


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

967


Can we make any program in c++ without using any header file and what is the shortest program in c++.

826