GATE 2019 CS – Question 14
In 16-bit 2's complement representation, the decimal number $-28$ is:
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) 1111 1111 1110 0100
Explanation
$28=0000\ 0000\ 0001\ 1100$. Inverting gives $1111\ 1111\ 1110\ 0011$ and adding 1 gives $1111\ 1111\ 1110\ 0100$.