Let the two consecutive memory bytes be B0 (at the lower memory address) and B1 (at the higher memory address).
In a big-endian system, the most significant byte (MSB) is stored at the lower memory address, so the numerical value is:
VBE=256⋅B0+B1 In a little-endian system, the least significant byte (LSB) is stored at the lower memory address (and MSB at the higher address), so the numerical value is:
VLE=256⋅B1+B0
Given that VLE−VBE=255:
(256⋅B1+B0)−(256⋅B0+B1)=255 255(B1−B0)=255⟹B1−B0=1 Thus, B1=B0+1.
The representation of the unsigned integer value on the little-endian computer is written with MSB followed by LSB, i.e., byte B1 followed by byte B0.
Let us evaluate each option (B1B0)16:
(A) 0x6665: B1=0x66, B0=0x65⟹B1−B0=0x66−0x65=1. (Correct)
(B) 0x0001: B1=0x00, B0=0x01⟹B1−B0=−1=1. (Incorrect)
(C) 0x4243: B1=0x42, B0=0x43⟹B1−B0=−1=1. (Incorrect)
(D) 0x0100: B1=0x01, B0=0x00⟹B1−B0=0x01−0x00=1. (Correct)
Hence, the correct choices are (A) and (D).