๐ -> 9/25/24: Syllabus / Everything is Bits
When lectures is over, add the content as aliases above
๐ค Vocab
- Bit - Binary Digit, 2 values
โ Unit and Larger Context
Small summary
โ๏ธ -> Scratch Notes
- Everything is bits
- Mapping of bits to meaning is artificial, and up to programmers
- B bits can represent
unique items - If you have S unique states you need
bits - Or the first power of 2
than S
Int 4 bytes/32 bits
Short 2 bytes/16 bits
Char 1 byte/8 bits
Float 4 bytes/32 bits
Double 8 bytes/64 bits
Sizes of variables can vary across systems so if you ever need to know a variables size in bytes keep using sizeof()
- Or the first power of 2
- B bits can represent
๐งช-> Example
- List examples of where entry contents can fit in a larger context
๐ -> Related Word
- Link all related words