maam,101010 in 1's complement = -21

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.

The Gateway to Computer Science Excellence

0 votes

for 1's complement

a)A=101010=-21 and B=+34 maximum range of number in 1's complement number for 6 bit is -31 to +31 so A+B can't overflow.

b) A-B =-55 which is out of range so overflow occur.

for 2's complement range =-32 to +31

a)A=101010=-22 and B=+35

A+B overflow can't occur.

b)A-B =-57 overflow occur

a)A=101010=-21 and B=+34 maximum range of number in 1's complement number for 6 bit is -31 to +31 so A+B can't overflow.

b) A-B =-55 which is out of range so overflow occur.

for 2's complement range =-32 to +31

a)A=101010=-22 and B=+35

A+B overflow can't occur.

b)A-B =-57 overflow occur

0

maam,101010 in 1's complement = -21

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.

101010=010101=-21(MSB=1).i ignore that step to write 1's complement .i write directly in decimal number.

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.4k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.2k
- Non GATE 1.4k
- Others 1.4k
- Admissions 595
- Exam Queries 573
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 18

50,741 questions

57,251 answers

198,057 comments

104,684 users