What shall be the 2's complement representation of 24 in a 16 bit computer?
Show answerHide answer
Correct answer: (D) 1111 1111 1110 1000
Explanation
24 = 0000 0000 0001 1000. Invert the bits (1111 1111 1110 0111) and add 1 to get 1111 1111 1110 1000, which is −24 in 2's complement.