# CO-Basics and ALU-Q15

Which of the following pairs of twos-complement two-byte integers, written in hexadecimal, would result in overflow if added?

A. 4650, 2340
B. FFED, FFFF
C. 787A, E3E0
D. 878A, E0E3 asked Jun 2
reshown Jun 3

+1 vote

Option D is the correct choice.

Overflow occurs in twos-complement when two numbers x and y of the same sign are added,
but the result has the opposite sign.
Choice A equals 6990 in hexadecimal, which has the same sign as the operands.
Choice B equals FFEC in hexadecimal, which has the same sign as the operands.
Choice C cannot overflow, since the operands have different signs.
Choice D equals 686D in hexadecimal, which has a different sign than the operands. answered Jun 3 by (31,090 points)
–1 vote
I guess the question should have been asked what will not result in overflow, because only one option is not resulting in overflow answered Jun 3 by (1,720 points)
Yes because other than D all show cin xor court = 0
Why sir say no option is correct.
Yes D) is correct Answer @getgatebook please verify.
Sir why d is not correct . answered Jun 3 by (19,690 points)