Lecture 10 Outline (October 16, 2015)
Reading
:
text
§7.1–7.5
Greetings and felicitations!
File I/O
Reading from a file (
cat2.c
)
Emphasize: note how
getc
is used; as
getchar
is simply
getc(stdin)
, this may help you with the debugging problem …
Quick review of scope
Preprocessor:
__LINE__
,
__FILE__
macros
extern
declaration (
scope.c
)
static
local variable declaration (
charcount.c
)
C arrays
Declarations
Arrays and subscripts (including negative ones)
Arrays and pointers
You can also obtain a PDF version of this.
Version of October 18, 2015 at 2:27PM