• CS 208.01 - Spring 2025

  • Schedule
  • Assignments
  • Resources
  • Samples
  • About

Lesson 10: What Goes Around Comes Around

21 April, 2025

Outline:

  1. Quiz #3
  2. Recap: 2’s complement
  3. Integer arithmetic + overflow
    • unsigned addition
    • example: integers.c
    • 2’s complement addition
    • detecting overflow

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

Relevant to our discussion today:

  • DiS Sec. 4.3: Signed Binary Integers
  • DiS Sec. 4.4.1: Addition
  • DiS Sec. 4.5: Overflow

For next time:

  • Assignment 4: Queues – try to get at least proficiency by the due date Wednesday!