Last time: Building an ArrayList / VLA / vector in C.
Today #
Arrays
- fixed array on the stack
- dynamic array on the stack
- array on the heap
- try passing them all to functions
Structs
- struct can contain pointers
- struct can contain a fixed-size array
- struct on the stack
- passing to function copies
- struct on the heap
- passing to function references
Linked Lists
- struct cell
- cons, free
- shared structure