Lesson 5: A Constructive Construction

Outline:

  1. C Structs
    • overview
    • example: struct.c
    • memory layout
  2. Mixing structs and arrays
  3. Lab 2: Strings in C

Want additional practice?

Check out the interactive exercises from the textbook:

Note that some of these exercises use malloc – we’ll see that soon!

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

What we talked about today:

For next time: