Lesson 7: Memory Models
Outline:
- Recap: side effects
- Memory models: values vs references
- Pointers
- basics
- example:
pointers.c
- Wrap-up
What’s next
Upcoming events/assessments:
- Assignment 6 is due tonight
- Assignment 7 will be released today and due Friday night
- Assignments 1–5 (all Scheme assignments) cannot be resubmitted after Wednesday at 10pm
- Quiz 2 will be this Friday (LOs to be listed Wednesday)
What you should do now:
- Read the assigned readings (see below)
- Finish and submit Assignment 6
- Work on resubmitting Assignments 1–5 with more complete functionality, style fixes, etc.
Reading assignment (to be completed by the next class):
Memory and pointers (from today):
- References and Values (pages 239–241)
- Memory
- Pointers
Programming in C (for next time):
- C Style Guidelines
- Arrays and Structs, C Preprocessor - Sections 6 and 11
- C Reference for Valgrind
- Optional: