The 32-bit word 0x12345678 is stored at byte address 100 on a little-endian machine. Which byte is at address 100?
Correct answer B. 0x78
Explanation
Little-endian stores the least significant byte at the lowest address, so addresses 100 to 103 hold 78, 56, 34, 12. A big-endian machine would put the most significant byte 0x12 at address 100. x86 is little-endian, while network byte order is big-endian, which is why programs convert values with functions such as htonl when sending them across a network.
Answer checked How we write and check questions
Discussion