Outline for April 8, 2002

Handouts: Associativity
Reading: Johnsonbaugh & Kalin pp. 113-137, 153-17


  1. Greetings and felicitations!
  2. Associativity of operations
    1. Difference between associativity of operations and order of evaluation
  3. dands1.c
    1. arrays (0-based, not 1-based)
    2. logical operator evaluation (lazy evaluation)
    3. changing character digits to integers (ndigit) and back (printf)
  4. dands2.c
    1. switch
  5. pow.c
    1. function prototype & declaration
    2. pass by value vs. pass by reference; C always the former
    3. scope in functions
    4. returning values


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