Skip to content
Related Articles

Related Articles

GATE | GATE CS 2021 | Set 2 | Question 54

Improve Article
Save Article
Like Article
  • Last Updated : 23 May, 2021

If the numerical value of a 2-byte unsigned integer on a little endian computer is 255 more than that on a big endian computer, which of the following choices represent(s) the unsigned integer on a little endian computer?
(A) 0x6665
(B) 0x0001
(C) 0x4243
(D) 0x0100


Answer: (A) (D)

Explanation: These mechanism is used to store data in memory. In Little Endian method lower address is store in lower byte and it is default case. And in Big Endian lower address is stored in upper case.

Option (A) and (D)

0x6665 – 0x6566 = FF = (255)10

0x0100 – 0x0001 = FF = (255)10

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!