Lesson 6: A Bit of an Operation

Outline:

  1. Binary operations in C
    • logical ops: &&, ||, !
    • bitwise ops: &, |, ~, ^
    • using binary ops with bitmasks
    • shift ops: <<, >>
    • example: bitwise.c
  2. Character encodings
    • review: ASCII
    • preview: codepoints and UTF-8

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