231k views
5 votes
Recursion does NOT take place if any of the following happen:

I. method A calls method B, which calls method C, which calls method B
II. method A calls method B, which calls method A
III. method A calls method B, B returns, and A calls B again

1 Answer

1 vote

Recursion does NOT take place if any of method A calls method B, which calls method A

II. method A calls method B, which calls method A

Step-by-step explanation:

Recursion is function is function which is used to call a same function by itself by multiple times with certain condition or loops.

These type of function extremely used on data structure or virus (TSR). Purpose of the function is repeated process and checks the validation and exit by true or false.

In programming languages such as c or c++, vb.net, c# is used to menu organizations so the same function is called and used so the end user don’t write separate function for each times. In case end user has not doesn’t proper exit method on recursion function system either hang or real task to exits.

User JaggedSpire
by
4.6k points