go to previous page   go to home page   go to next page hear noise highlighting

Answer:

Yes. The previous example just did that.

Subtracting an integer X from Y is the same as adding -X to Y.


Subtraction in Two's Complement

The binary addition algorithm is used for subtraction and addition. To subtract two numbers represented in two's complement, form the two's complement of the number to be subtracted and then add. Overflow is detected as usual.


QUESTION 26:

Subtract     0001 1011    from     0011 0001.  

Is the result correct or not?


go to previous page   go to home page   go to next page