Lesson 6: Some Helpful Pointers

Outline:

  1. Recap: C string functions
  2. Program memory
  3. Pointers
    • variable addresses
      • * versus &
      • arrays and pointers
    • example: pointers.c
  4. Assignment 3: String Things
    • data store: practice with structs and char arrays
    • string splitter: use strtoksee documentation for an example

Want additional practice?

Check out the interactive exercises from the textbook!

Reminder: next quiz Monday

You will see these Quiz Learning Objectives:

  • DR 1: UTF-8 encoding
  • DR 2: UTF-8 decoding
  • DR 3: struct layout
  • DR 4: array layout
  • DR 5: C strings

There likely won’t be any additional questions, but my first choice would probably be NR 1 or NR 2 if it ends up faster/shorter than I expect.

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

What we talked about today:

Reviewing more in-depth:

For next time: