Lesson 2: Adding a Little Character

Outline:

  1. Representing data
    • bits and bytes
    • memory
  2. C strings and arrays
  3. Pointers
    • * vs. &
    • arrays and pointers
  4. Two-dimensional arrays
    • layout in memory (row-major order)
    • connection to C strings and files
    • example: arrays2d.c
  5. Recap: Assignment 1
    • assignment overview
    • problem decomposition
    • questions?
  6. Syllabus: read it and post questions on Slack by Friday

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

Soon, take a look at The 5-Minute Guide to C Pointers by Dennis Kubes. If you don’t read this now, try it out this weekend.