GATE Computer ScienceModerateGATE CSE · NIELIT

What is the 8-bit two's complement representation of −45?

  1. A. 11010010
  2. B. 00101101
  3. C. 10101101
  4. D. 11010011

Correct answer: D. 11010011

45 = 00101101; inverting gives 11010010 and adding 1 gives 11010011.

More Digital Logic questions

Exams that ask this topic