CS208, Friday 7 Jan 2022
Memory
- Big box o' bytes with addresses
- What's a byte?
- Whoops...detour to...
...Integer notations
- Binary: relation to physical devices, computational benefits, 0b notation
- Octal: 3-bit chunks, 0 notation
- Hexadecimal: 4-bit chunks, 0x notation, as seen in RGB color representation
- bits, bytes, words
- od
- hexdump
C strings
Addresses ("pointers") in C
- pointers.c
- &: the "address-of" operator
- * in declarations: "a pointer to"
- * applied to a pointer: "value at this address"
- Array names are pointers. (That doesn't seem fair.)
2D arrays
- arrays2d.c
- Because they illustrate a bunch of interesting facts about memory
- Because you might want to use them for Monday's assignment
Questions?
- (Does Jeff really think we'll get this far in 60 minutes...?)
Have a great weekend.