CS 222
Review Sheet
Midterm Exam is on July 14
Stuff we have talked about:
- Form of a C program
- preprocessor directives, function prototypes, global declarations, functions
- Basic types
- sizeof operator
- integer types
- constants (decimal, octal, hex)
- long, short, unsigned
- char as an integer type and the ascii code
- real types
- type casts
- Basic IO
- printf, scanf, format descriptors
- Arrays
- Strings
- as '\0'-terminated char arrays
- Control structures
- logical expressions
- relational operators
- use of various types as booleans
- logical operators
- if, if ... else
- loops: while, do while, for
- switch
- Functions
- function definitions
- parameters, local variables and scope
- function prototypes