CS 262
Midterm Review Sheet
Stuff:
- Form of a C program
- preprocessor directives, function prototypes, global declarations, functions
- Basic types
- sizeof operator
- integer types
- literals (decimal, octal, hex)
- long, short, unsigned
- char as an integer type and the ascii code
- converting from ascii atoi() and sscanf()
- real types
- type casts
- Basic IO
- printf, scanf, format descriptors
- 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
- function prototypes
- parameters and local variables
- scope
- Command line arguments
- Number representations
- number base conversion
- 2's complement representation of signed integers
- Files
- reading and writing text (ascii) files
- reading and writing binary files
- Bit operations
- bitwise logical operations
- bitmasks