Noah Quigley-Hobson
Personal Webpage
CS 240
These are a lot of my old lecture notes. They don't cover everything, but they do cover a lot. These notes are meant to be supplemental, not to replace the main CS 240 website.
Lab Slides
- HW0 Slides: Introductions, Syllabus and Housekeeping Stuff, BASH
- HW1 Slides: ROT-13 and XOR Checksum Example
- HW2 Slides: fscanf Usage, Floating Point Rounding Errors
- HW3 Slides: Pointers, Double Pointers, and Arrays
- HW4 Slides: Structs and Struct Pointers, Complex Numbers
- HW5 Slides: fread and fwrite, Binary Data, and void*
- HW6 Slides: Memory Layout, Buffer Overflows, and strcpy
- HW6/7 Slides: HW6 Hints, Linked Lists
- HW8 Slides: Malloc, Dynamic Memory, and Scope
- HW9 Slides: Extensions of Linked Lists, Malloc Part 2
- HW10 Slides: Double Pointers and Data Deduplication
- Midterm II + HW11 Slides: Pointers, Dynamic Memory, Linked Lists, Recursion, Trees, and Solutions to Some Practice Problems (HW11 notes start on page 18)
- HW12 Slides: How CPUs work, how functions work
- Final exam study notes day 1
Sample Programs
execstack_sample.c, which can be compiled with gcc -zexecstack execstack_sample.c