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.

  1. Anything from the midterm study guide or sample (or actual!) midterm

  2. Function parameters
    1. How arguments are passed to functions
    2. Pointers and arrays as parameters
    3. Changing values in the caller using pointers as parameters

  3. Recursion
    1. The stack and how it is used in recursion
    2. Base case and recursive case

  4. Structures
    1. What it is
    2. Declarations, fields, and the . operator
    3. Pointers to structures and the -> operator
    4. Arrays of structures

  5. Dynamic memory allocation
    1. malloc(), free()
    2. Keywords
    3. Linked lists

  6. C operators
    1. sizeof operator
    2. Defining a type (typedef)
    3. Conditional (? :) operator

  7. File input and output
    1. File pointers, especially stdin, stdout, stderr
    2. Opening and closing files
    3. getc(), fgetc(), fscanf(), fgets()
    4. putc(), fputc(), fprintf(), fputs()

  8. Command-line arguments
    1. argc, argv

  9. C Preprocessor
    1. Macros with and without parameters
    2. Include files (like stdio.h)

You can also obtain a PDF version of this. Version of November 30, 2015 at 6:50AM