• CS 208.00 - Fall 2024

  • Schedule
  • Assignments
  • Resources
  • Samples
  • About

Lesson 3: A Bit of an Operation

20 September, 2024

Outline:

  1. Review: structs, binary/hexadecimal
  2. Numerical operations in C
    • logical ops: &&, ||, !
    • bitwise ops: &, |, ~, ^
    • bitmasks
    • shift ops: <<, >>
    • example: bitwise.c
  3. Syllabus Q&A
  4. Assignment 3: Bits and Character Encodings - due next Wednesday

To do after class:

  1. Lab 1: debugging C with VS Code

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

  • DiS Sec. 4.6: Bitwise Operators
  • DiS Sec. 1.5.4: Introduction to Strings and the C String Library
  • An Introduction to Character Encodings by Ravi Suresh Mashru
  • Wikipedia page on UTF-8