ABSTRACT

This problem set serves as the introduction to Low-Level Data Representation. It covers the fundamental mechanics of bit manipulation, integer signedness, and the serialization of characters into the UTF-8 encoding standard.


Problem Categories

Bitwise Fundamentals

Integer Representations

Character Encodings (ASCII & UTF-8)


Technical Summary

OperationC Syntax ExamplePurpose
Maskingx & 0xFFFFClear bits outside target range.
Shiftingx >> 16Move high bits into low positions.
Encoding`(cp >> 6)0x80`

  • C Syntax: Essential for using bitwise operators (&, |, ~, ^, <<, >>).
  • Counting: Used to determine the number of possible values in different bit-widths (e.g., vs ).
  • Lecture: Strings and Data: Theoretical background on how these encodings were designed.