
Chapter 18: Prelab Assignment
Recursion | 455
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Fill in the following chart showing the value of the variable n at the beginning of
each execution of function Factorial, starting with the nonrecursive call Factorial(5). Fill in
the third column with the function value returned at the completion of the execution of that call.
Call n Function Value Returned
Nonrecursive Call _______ ___________________
1st Recursive Call _______ ___________________
2nd Recursive Call _______ ___________________
3rd Recursive Call _______ ...