✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
The recursive function sum(n) is defined as follows:
\text{sum}(n) =
\begin{cases}
0, & \text{if } n = 0 \\
n + \text{sum}(n-1), & \text{if } n > 0
\end{cases}
How many times is the function sum() called while evaluating sum(6)?
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!