CS 262
Final Exam 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
- Pointers
- contents of (*) and address of (&) operators
- passing parameters by reference
- pointers and arrays
- pointer arithmetic
- malloc() and free()
- Structs
- struct definition (using and not using typedef)
- "." and "->" operators
- Linked lists
- creating nodes
- list operations: traversing, inserting, deleting, etc.
- Enumeration types
- defined with and without typedef
- as integer types
- The preprocessor
- text manipulator only
- #include and #define
- conditional compilation: #ifdef ... #endif
- inclusion guards
- Building a program
- source files compiled independently
- object files and role of the linker
- header files and their appropriate use
- make