wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In 2's complement addition, overflow

A
cannot occur when a +ve value is added to a -ve value
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
is flagged whenever there is carry from sign bit addition
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
is flagged when the carries from sign bit and previous bit match
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A cannot occur when a +ve value is added to a -ve value
When two signed 2's complement numbers are added, overflow is detected if:

1. both operands are positive and the result is negative, or

2. both operands are negative and the result is positive.

Obviously, adding two numbers of opposite sign can't produce overflow because addition of different signed number is equal to subtraction.

flag
Suggest Corrections
thumbs-up
2
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon