Ask a Question

Difference between 2's & 1's compliment??

on 2014-08-10 12:38:14   by Santu   on Computer Science & Engineering  1 answers

Tryambak

on 2014-12-17 10:30:00  

1's complement is used to convert each 0 into 1 and each 1 into 0 in a given number. For example, 1's complement of 0011011 is 1100100. 2's complement is used to get the negative signed number and is formed by adding 1 to the 1's complement. For example,adding one to the previous 1's complement we get 1100101.