Computer Science, asked by badarunnisa8922, 10 months ago

When we perform subtraction on -7 and 1 the answer in 2’s complement form is _________

Answers

Answered by riyasharma2296
0

Explanation:

the answer is -8 not this 2

Answered by sadiaanam
0

Answer:

The result in binary is 1000 1000, which represents -8 in 2's complement form, which is -8

Explanation:

In 2's complement representation, the subtraction of 1 from -7 can be done as follows:

Write the binary representation of -7 in 2's complement form:

-7 in binary: 1000 0111 (8-bit representation)

Write the binary representation of 1 in 2's complement form:

1 in binary: 0000 0001 (8-bit representation)

Add the two binary numbers as if they were unsigned integers:

1000 0111

0000 0001

1000 1000

So, the subtraction of 1 from -7 in 2's complement form is -8.

In this example, the answer is -8, represented in binary as 1000 1000.

For more such question: https://brainly.in/question/54922246

#SPJ3

Similar questions