Computer Science, asked by Anonymous, 6 months ago

what is 1's complement and 2's complement.

no copy pasted answer required​

Answers

Answered by yesiamin6
1

Answer:

1's complement means the operation which convert 0 to one's and ones to 0 of binary value

2's complement means (1's complement +1) of the binary value

Explanation:

4=0100

1's complement of 4 is =1011

2's complement of 4 is =1011

+1

=1100

HOPE IT HELPS YOU

DO FOLLOW FOR MORE ANSWERS

MARK AS BRAINLIEST

Answered by nishantvipdp
4

\huge(Answer)

➜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). The ones' complement of the number then behaves like the negative of the original number in some arithmetic operations.

→Two's complement is a mathematical operation on binary numbers, and is an example of a radix complement. It is used in computing as a method of signed number representation. The two's complement of an N-bit number is defined as its complement with respect to 2ᴺ; the sum of a number and its two's complement is 2ᴺ.

Explanation:

USE OF 1'S AND 2'S COMPLEMENT:

➝Signed-complement forms of binary numbers can use either 1's complement or 2's complement. The 1's complement and the 2's complement of a binary number are important because they permit the representation of negative numbers.

IMPORTANCE OF 1'S AND 2'S COMPLEMENT:

➝1's complement is simply a Bitwise NOT gate, i.e. 1011 becomes 0100. 2's complements is the most commonly used to representation of signed integers because it obeys the rules of addition and subtraction.

Similar questions