Computer Science, asked by kadamsejal25gmailcom, 7 months ago

find 1's and 2's complement of 1100110​

Answers

Answered by jayatidsvaidya
1

Answer:

To get 1's complement of a binary number, simply invert the given number. For example, 1's complement of binary number 110010 is 001101. To get 2's complement of a binary number is 1's complement of a given number plus 1 to the least significant bit (LSB).

Binary number = 111

1's complement  = 000

Answered by qwvilla
1

1's complement of 1100110 is 0011001 and 2's complement of 1100110 is 0011010.

Given :

The binary number 1100110

To find :

1's and 2's complement of the given binary number

Solution :

In 1's complement of a binary number , all the bits are toggled, i.e., 0 changes to 1 and 1 changes to 0.

1's complement of 1100110 = 0011001

Adding 1 to 1's complement results in 2's complement.

Hence, 2's complement of 1100110 = 0011001 + 1

= 0011010

Sum Carry

1 + 1 0 1

1 + 0 1 0

0 + 1 1 0

0 + 0 0 0

Hence, 1's complement of 1100110 is 0011001 and 2's complement of 1100110 is 0011010.

#SPJ3

Similar questions