Previous Lecture | lect07 Slides | Next Lecture |
Topics
https://github.com/ucsb-cs16-f18-nichols/code-from-class/tree/master/10-18
- Separate compilation with Makefiles read about Makefile
Data and number representation
- Positional encoding: binary, hex, decimal
- Internal vs. external representation
- Conversion between different representations
- Key ideas: bits can represent ANYTHING. With n bits we can represent at most 2^N things
- Apply above rule to represent characters (ASCII), unicode, colors ….
- The data type of a variable determines its representation in memory AND the number of bits used to store each variable