Outline for May 13, 2002

Handouts: Homework #4
Reading: Johnsonbaugh and Kalin, pp. 177-191, 390-435, 534-542


  1. Greetings and felicitations!
  2. C Preprocessor
    1. #define macros with arguments; contrast with functions
    2. #include "...", #include <...>
    3. #if ... #elif ... #else ... #endif
    4. #ifdef ... #elif ... #else ... #endif, #ifndef ... #elif ... #else ... #endif
    5. #if 0 and #ifdef undef
    6. #undef
    7. #error
    8. #pragma
  3. Storage Classes
    1. auto
    2. static
    3. register
    4. extern
  4. Type Qualifiers
    1. const
    2. volatile
  5. Other Types
    1. it fields
    2. unions
    3. enumerated types

ECS 30-A, Introduction to Programming
Spring Quarter 2002
Email: cs30a@cs.ucdavis.edu