Unit 3 - Memory

Pointers. Segmentation Faults. Dynamic Memory Allocation. Stack. Heap. Buffer Overflow. File I/O. Images.

Lecture

Source Code

Resources

Shorts
Reference Sheets

Practice, Labs & Problems

  • Practice Problems:
    • Bottom Up, for practice working with images and metadata
    • License, for practice working with files and file pointers
    • Whodunit, oldie, but goodie
  • Lab
  • Problem Sets:

Advice

  • Try out David’s programs from class via Unit 3’s examples
  • If you see any errors when compiling your code with make, focus first on fixing the very first error you see, scrolling up as needed. If unsure what it means, try asking help50 for help. For instance, if trying to compile filter, and
make filter 

is yielding errors, try running

help50 make filter

instead!