Outline for April 24, 2002
Handouts: Scope, Recursion
Reading: Johnsonbaugh and Kalin, pp.175-177, 195-214
-
Greetings and felicitations!
-
Scope
-
Go through handout
-
static keyword and multiple files
-
Recursion
-
Base case, recursive case; relation to mathematical induction
-
Show process stack and how function calling works
-
Factorial; show call stack for n = 4
-
GCD; show call stack
-
Sort; chow algorithm in detail, then work example