Chapter 2: Q7E (page 166)
Question: Show how the value would be arranged in memory of a little-endian and a big-endian machine. Assume the data is stored starting at address 0
Short Answer
Little-endian | |
Data | Address |
ab | 12 |
cd | 8 |
ef | 4 |
12 | 0 |
Big-endian | |
Data | Address |
12 | 12 |
ef | 8 |
cd | 4 |
ab | 0 |