Computer Science, asked by sanjay02636, 5 months ago

what is 1's complement? give an example​

Answers

Answered by Anonymous
3

Answer:

One's complement:

The ones' complement of a binary number is defined as the value obtained by inverting all the bits in the binary representation of the number (swapping 0s and 1s).

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

Similar questions