In a little-endian system, the 32-bit value 0x12345678 is stored with which byte at the lowest memory address?
-
A
0x34
-
B
0x78
Correct answer
-
C
0x12
-
D
0x56
13 views
Explanation
Little-endian machines, such as x86, store the least significant byte first. Big-endian stores 0x12 first, which is also standard network byte order.
Reference
Asked in: GATE CS, NTS, PEC
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ