Professional Documents
Culture Documents
Exercise Recursion 2
Exercise Recursion 2
1. Study the method func3() below, then trace the execution of the method call
func3(6,4) and func3(-5,1) by drawing stack of activation record and a recursive tree
for each call. What are the values that will be returned by these calls?
a) func3(6, 3)
b) func3(-5, 1)