Outline for April 12, 2002 Handouts: More Sample C Programs Reading: Johnsonbaugh & Kalin pp. 230-237, 305-329 1. Greetings and felicitations! a. Homework 2 to be handed out on Monday, will be due on April 29 2. copy1.c a. strings (NUL-terminated arrays) b. printing strings 3. copy2.c a. definition of pointer; address of variables (&), dereferencing of pointer (*) b. how it is used c. pointer arithmetic (in the printf) 4. swaps.c a. pointers and parameter lists b. pointers and var paramaters 5. paa.c a. str1copy: condition on for, explicit comparison b. str1copy: condition on for, implicit comparison c. str3cpy: condition on for, implicit comparison from assignment d. str4cpy: pure pointers 6. fileio.c a. like program 5 from first handout, but driven by files not standard input b. show technique for developing this (program becomes function, add file I/O driver) c. go through file manipulation functions