Lesson 6: A Bit of an Operation
Outline:
- Binary operations in C
- logical ops:
&&
,||
,!
- bitwise ops:
&
,|
,~
,^
- using binary ops with bitmasks
- shift ops:
<<
,>>
- example:
bitwise.c
- logical ops:
- Character encodings
- review: ASCII
- preview: codepoints and UTF-8
Reading assignment (to be completed by the next class):
- The bitwise.c sample
- Assignment 3: Bits and Character Encodings – read it and try to run the starter code on
mantis
! - Bryant & O’Halloran Sec. 2.2.1–2.2.3 (p. 59–70)