Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
Modern binary arithmetic for signed integers overwhelmingly uses two's complement. Subtraction A − B is performed as A + (two's complement of B), which unifies add/sub hardware.
Given Data / Assumptions:
Concept / Approach:
Two's complement of B is formed by bitwise complement (one's complement) plus 1. While one's complement exists historically, it suffers from negative zero and complicates arithmetic. Two's complement removes negative zero and simplifies overflow rules, which is why it is standard.
Step-by-Step Solution:
Verification / Alternative check:
Instruction sets and ALUs implement add with an inverted operand plus one for subtraction, i.e., two's complement.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing the intermediate “invert bits” step (one's complement) with the complete two's complement operation.
Final Answer:
Incorrect
Discussion & Comments