Lecture 10 Outline (October 16, 2015)

Reading: text §7.1–7.5

  1. Greetings and felicitations!
  2. File I/O
    1. Reading from a file (cat2.c)
    2. Emphasize: note how getc is used; as getchar is simply getc(stdin), this may help you with the debugging problem …
  3. Quick review of scope
    1. Preprocessor: __LINE__, __FILE__ macros
    2. extern declaration (scope.c)
    3. static local variable declaration (charcount.c)
  4. C arrays
    1. Declarations
    2. Arrays and subscripts (including negative ones)
    3. Arrays and pointers

You can also obtain a PDF version of this. Version of October 18, 2015 at 2:27PM