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

Using a 4-bit 2's complement arithmetic, which of the following additions will result in an overflow?

(i) 1100 + 1100

(ii) 0011 + 0111

(iii) 1111 + 0111

A
(i) and (iii) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(ii) only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
(i) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
(iii) only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B (ii) only
Overflow in 2's complement arithmetic occur when:

1. There is carry from MSB but no carry come on MSB.

2. There is a carry on MSB but no carry come outside from MSB

i.e., CoutCin=1

So,

1 1 1
0 0 1 1
0 1 1 1

1 0 1 0


No overflow since:

CoutCin=0

1
0 0 1 1
0 1 1 1

1 0 0 1


Overflow since:

CoutCin=1

1 1 1
1 1 1 1
0 1 1 1

1 0 1 1 0


No overflow since:

CoutCin=0

Note: Overflow condition CoutCin

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Contributions to Mathematics
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon