Lesson 2: A Structured Construction

Outline:

  1. Programming in C
    • review: basics
    • handling command-line arguments: args.c
  2. Representing data
    • bases: decimal, binary, hex
    • conversions: binary to decimal/hex
    • numerical types: char, short, int, long, float, double
    • “strings” in C
  3. C Structs
    • overview
    • example: struct.c
    • memory layout
  4. Mixing structs and arrays
  5. Assignment 2 - due Friday night!
  6. Syllabus: read it and post questions on Slack by Friday

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