Suppose we have a 10-bit computer that uses 10-bit int (2’s complement representation). The number representation of -35 is
Explanation
d) To represent - 35 in a 10 -bit computer that uses 10 -bit two's complement representation, follow these steps:
Represent the positive value of 35 in binary: 0000100011. Invert all the bits: 1111011100.
Add 1 to the inverted value: 1111011101 .
Thus, the 10 -bit two's complement representation of - 35 would be 1111011101
Explanation
d) To represent - 35 in a 10 -bit computer that uses 10 -bit two's complement representation, follow these steps:
Represent the positive value of 35 in binary: 0000100011. Invert all the bits: 1111011100.
Add 1 to the inverted value: 1111011101 .
Thus, the 10 -bit two's complement representation of - 35 would be 1111011101