2's complement of 1100 is
Answers
Answered by
0
Answer:
0011
Explanation:
0 become 1,1 become 0
Answered by
0
- It is necessary to invert every bit in a binary integer before adding 1 to the result in order to get the 2's complement.
- We are looking for the 2's complement of the binary integer 1100 in this situation. We convert every 1 to a 0 and every 0 to a 1, in order to invert every bit in this integer. As a result, 0011 is 1100's reversed counterpart.
- This inverted number is then multiplied by one.
0011 0001
0100
Because of this, 0100 in binary is the 2's complement of 1100.
This binary number may be represented in decimal form in the following ways:
0*2^3 + 1*2^2 + 0*2^1 + 0*2^0 = 4
In decimal form, the 2's complement of 1100 is 4, or 4.
- In summary, to determine a binary integer's 2's complement, we invert every bit in the value and then add 1. When performing operations like subtraction, which can be done by adding the 2's complement of the subtrahend to the minuend, this can be helpful in computer programming.
For more questions on Computer Science
https://brainly.in/question/22731028
#SPJ3
Similar questions