+1 vote
in Class 11 by kratos

With the help of an example explain 1’ complement and 2’ complements.

1 Answer

+4 votes
by kratos
 
Best answer

*1’ complement:**

Representing a signed number with 1’ complement is done by changing all the bits that are 1 to 0 and all the bits that are 0 to For example, 1’ complement of 1010100 is 0101011.

*2’ complement:**

Representing a signed number with 2’ complement is done by adding 1 to the 1’ complement representation of the number. For example, 2’* complement of 1010100 is

  • Step 1: 1’* complement of 1010100 is 0101011
  • Step 2: add

...