In computers, subtraction is generally carried out by:
In computers, subtraction is generally performed using $2$'s complement method.
For subtracting $B$ from $A$, the computer takes the $2$'s complement of $B$ and adds it to $A$.
This makes subtraction possible using the same binary adder circuit used for addition.
Therefore, subtraction in computers is generally carried out by $2$'s complement.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.