Lesson 8: Pointers and Memory

Outline:

  1. Recap: value vs. reference model
  2. Recap: pointers
  3. Program memory
  4. Wrap-up

What’s next

Upcoming events/assessments:

  • CS Bits and Bytes tomorrow at 3:30pm in Anderson 329: Anna Rafferty on building GenAI systems to support education
  • Assignments 1–5 (all Scheme assignments) cannot be resubmitted after tonight at 10pm
  • Assignment 7 is due Friday night
  • Quiz 2 will be this Friday and cover the following Quiz Learning Objectives:
    • Core:
      • PL 2: value vs. reference model
      • FS 6: currying and partial application
      • FS 7: lazy lists
      • IC 1: pointers
    • Advanced:
      • PL 7: side effects
    • Repeat:
      • FS 1: procedure calls (CR)
      • (maybe, but not guaranteed) FS 2: cons cells (CR)
      • FS 12: writing Scheme (AD)

What you should do now:

  • Read the assigned readings (see below)
  • Work on resubmitting Assignments 1–5 with more complete functionality, style fixes, etc.
  • Work on Assignment 7

Reading assignment (to be completed by the next class):

Programming in C (from today):

Arrays and Structs (for next time):