Session Details

Week 9, Session 27 — Thu Nov 6

Reading

  1. Pages 138-142, 143-146 (malloc and free)
  2. Pages 188-192 (Dynamic Allocation of arrays, strings, and structs)

HW Due

  1. HW 26

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] Break
  4. [20 min] Pointers to structs
  5. [40 min] Homework

Dynamic Memory Allocation

HW Assigned

  1. HW 27