Outline for April 3, 2002 Handouts: Sample Basic C Programs Reading: Johnsonbaugh & Kalin pp. 31-63 1. Greetings and felicitations! 2. fahr1.c a. program (main, return or exit for main) b. declarations (int, register int) c. body (while, functions; printf) 3. Basic operators a. arithmetic: +, -, *, /, % b. % defined so that n % p = r implies n = a * p + r for some a c. 5 % -2 can be 1 (5 = -2 * 3 + 1) or -1 (5 = -2 * 2 + -1) 4. fahr2.c a. macros b. include