Q. What do you understand by recursion? State the advantages and disadvantages of using recursion.


Answer =

Process of calling a function from within itself is known as recursion.

Advantage:-
Recursion makes the code short and simple.

Disadvantage: -
It is slow in executing the program due to over of multiple function calls.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post