Lesson 3: A Bit of an Operation
Outline:
- Review: structs, binary/hexadecimal
- Numerical operations in C
- logical ops:
&&,||,! - bitwise ops:
&,|,~,^ - bitmasks
- shift ops:
<<,>> - example:
bitwise.c
- logical ops:
- Syllabus Q&A
- Assignment 3: Bits and Character Encodings - due next Wednesday
To do after class:
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