Hi, I was just reading some article when I stumbled across this. It's making me question my knowledge of endianness. It says:
Code:
For example lets say we are going to store a 2-byte number
in memory say the value is (in hex) 0x0203
First this is how the value is stored on a big-endian machine:
___________
| 02 | 03 |
|_____|_____|
address: 0 1
And here is the same value on a little-endian machine:
___________
|03 | 02 |
|_____|_____|
address: 1 0
Is this correct? Shouldn't the latter either be:
Code:
___________
|03 | 02 |
|_____|_____|
address: 0 1
or
Code:
___________
|02 | 03 |
|_____|_____|
address: 1 0