🎁BACK-TO-SCHOOL DEAL. Subscribe Now to get 40% OFF at only 8.49 USD/month, only valid until Sep 30th, 2024

Question

Question
Answer the questions with words recursion or mutual recursion. (Copy and paste, no excuse for misspelling) 1. Function A calls function A. This is called: 2. Function A calls function B, then B calls A. This is called:

Asked By CelestialVoyage22 at

Answered By Expert

Terry

Expert · 3.7k answers · 3k people helped

Step 1/2

1).

Function A calls function A. This is called recursion.

Explanation:

Recursion is the process in which a method calls itself. In this case, function A is calling itself, making it a recursive function call.

Step 2/2

2).

Function A calls function B, and then B calls A. This is called - mutual recursion.

Explanation:

If function calls occur in a circular manner, then that type of function call is called mutual recursion. In this case, function A and function B call each other in a circular pattern, making it an example of mutual recursion.

Final Answer

Both of the questions are answered above.

Explanations are provided above.