Final Study Guide
This is simply a guide of topics that I consider important for the final. I don’t promise to ask you about them all, or about any of these in particular; but I may very well ask you about any of these, as well as anything we discussed in class, in the discussion section, or that is in the programs and handouts.
- Anything from the midterm study guide or sample (or actual!) midterm
- Function parameters
- How arguments are passed to functions
- Pointers and arrays as parameters
- Changing values in the caller using pointers as parameters
- Recursion
- The stack and how it is used in recursion
- Base case and recursive case
- Structures
- What it is
- Declarations, fields, and the . operator
- Pointers to structures and the -> operator
- Arrays of structures
- Dynamic memory allocation
- malloc(), free()
- Keywords
- Linked lists
- C operators
- sizeof operator
- Defining a type (typedef)
- Conditional (? :) operator
- File input and output
- File pointers, especially stdin, stdout, stderr
- Opening and closing files
- getc(), fgetc(), fscanf(), fgets()
- putc(), fputc(), fprintf(), fputs()
- Command-line arguments
- argc, argv
- C Preprocessor
- Macros with and without parameters
- Include files (like stdio.h)