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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.