Consider the function: int mystery ( ( int w ) ) { { if ( ( w
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider the function:
int mystery(int w)
{
if (w <0)
return 0;
int x = mystery(w −2);
return w − x;
}
Which line's removal would cause infinite recursion?
Question 29 options:
A)
int mystery (int w)
B)
if (w <0) return 0;
C)
int x = mystery (w −2);
D)
return w − x;
E)
The recursion is already infinite.
Related Book For
Posted Date: