Session Details

Week 10, Session 28 — Sec. 1: Tue Feb 12
Sec. 2: Mon Feb 11
Sec. 3: Mon Feb 11

Reading

  1. none

HW Due

  1. HW 27

Topics

  1. Dynamic allocation of arrays and Strings
  2. Malloc and free
  3. Pointers to structs

Outline

  1. [10 min] Hand back quiz, answer questions, final exam info.
  2. [25 min] Dynamically allocating arrays--sizeof, malloc, and free
  3. [5 min] The Malloc family--malloc, calloc, and realloc
  4. [5 min] Break
  5. [20 min] Pointers to structs
  6. [40 min] Homework

Dynamic Memory Allocation

HW Assigned

  1. HW 28