Computer Science, asked by naayra3264, 2 months ago

Find the 2's complement for 10101011

Answers

Answered by fk510199
0

Explanation:

10101011:- this is binary number

1 step:- First get 1's complement of that number

1's complement method:- Convert each binary number in (1 into 0) & (0 into 1)

After 1's complement of 10101011 is 010101002 step:- Add 1 binary bit of 1's compliment bits(binary number)

01010100

01010100+ 1

01010100+ 1________

01010100+ 1________01010101 this is 2's complement of binary

this is 2's complement of binary number

  • ADD Rule for binary

  • 1+1=0 and carry is 1
  • 1+0=1 and carry is 0(zero)
  • 0+1=1 and carry is 0(zero)
  • 0+0=0 and carry is 0(zero)
Similar questions