Awesome q2a theme
+1 vote
15 views
Why $2’s$ complement operation generally used for subtraction?
in Digital Logic by (246 points) | 15 views
+1
A-B = A+(-B) ==> here you need to do only addition only, so negative number represented in 2’s complement

1 Answer

0 votes
With Two’s complement you can do the two task of adding and subtracting the numbers without any special logic, which also implies you can do the addition and subtraction of two positive or negative numbers by the same circuit in the CPU only.

That is why we prefer 2’s complement for subtraction.
ago by (159 points)
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
931 questions
593 answers
1,873 comments
81,472 users