1. x = 3 after the call to doref x = 16 after the call to doval x = 17 after the call to dolocal x = 7 after the call to doglobal 2. At the start of main num = 1 At the start of one num = 10 At the end of one num = 50 After call to one num = 1 At the start of two num = 1 At the end of two num = 5 After call to two num = 1 At the start of three num = 100 At the end of three num = 200 After call to three num = 1 At the start of four num = 1 At the end of four num = 25 After call to four num = 25 At the start of two num = 25 At the end of two num = 5 After call to two num = 25 At the start of one num = 50 At the end of one num = 50 After call to one num = 25 At the start of five num = 50 At the end of five num = 2 After call to five num = 3 At the start of one num = 2 At the end of one num = 50 After call to one num = 3 3. 1 3 total 3 2 6 total 9 3 9 total 18 4 12 total 30 5 15 total 45
Email Me |
Office Hours |
My Home Page |
Department Home |
MCC Home Page
© Copyright Emmi Schatz 2002