Outline for May 10, 2002

Handouts: none
Reading: Johnsonbaugh and Kalin, pp. 143-148, pp. 177-191


  1. Greetings and felicitations!
  2. Bit Operations
    1. Representation of integers as bit sequences
    2. & | ~
    3. Contrast with logical operators && || !
    4. << >>
    5. bit masking
  3. 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

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