• CS 208.00 - Fall 2023
  • Schedule
  • Assignments
  • Resources
  • Samples
  • About

Lesson 9: What Goes Around Comes Around

29 September, 2023

Outline:

  1. Mixing signed/unsigned
    • explicit/implicit type conversions
    • example: printing_bytes.c
    • size changes: expanding and truncating
  2. Integer arithmetic + overflow
    • unsigned addition
    • 2’s complement addition

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

  • Bryant & O’Halloran Sec. 1.1–1.3 (p. 2–7)
  • Bryant & O’Halloran Ch. 3 intro (p. 164–166) + Sec. 3.2 (p. 169–177)