Chapter 15: Problem 5
What is direct recursion? What is indirect recursion?
Short Answer
Expert verified
Answer: Direct recursion occurs when a function directly calls itself within its own function body, such as the factorial function. Indirect recursion occurs when a function A calls another function B, which then calls the original function A, as in the case of mutually recursive functions like even and odd.