Outline for April 10, 2002 Handouts: More Sample C Programs Reading: Johnsonbaugh & Kalin pp. 153-176, 230-237, 305-329 1. Greetings and felicitations! a. Homework, problem 3: review scanf and how to read in integers b. Homework, problem 4: floating point constants (1.0F) vs. double constants (1.0) c. Homework, problem 5: how to input newline (^V^J), carriage return (^V^M), bell (^G), form feed (^L), ver- tical tab (^K), NUL (^2). 2. dands2.c a. switch 3. pow.c a. function prototype & declaration b. pass by value vs. pass by reference; C always the former c. scope in functions d. returning values 4. copy1.c a. strings (NUL-terminated arrays) b. printing strings 5. copy2.c a. definition of pointer; address of variables (&), dereferencing of pointer (*) b. how it is used c. pointer arithmetic (in the printf) 6. swaps.c a. pointers and parameter lists b. pointers and var paramaters