GATE Computer ScienceHardGATE CSE · UGC NET

Two 4-bit two's complement numbers are added and the result is kept in 4 bits. For how many of the 256 ordered operand pairs does signed overflow occur?

  1. A. 48
  2. B. 64
  3. C. 80
  4. D. 96

Correct answer: B. 64

Overflow occurs when the true sum is above 7 or below −8; counting the pairs for each case and adding gives 64.

More Digital Logic questions

Exams that ask this topic