GATE | GATE CS 2019 | Question 14

In 16-bit 2’s complement representation, the decimal number −28 is:
(A) 1111 1111 0001 1100
(B) 0000 0000 1110 0100
(C) 1111 1111 1110 0100
(D) 1000 0000 1110 0100


Answer: (C)

Explanation: 2’s complement of a decimal number:

+28 ⇒ 0000 0000 0001 1100

–28 ⇒ 1111 1111 1110 0100 (2’s complement form)

Option (C) is correct.

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.