In computers, subtraction is generally carried out by:
🎥 Video solution / Text Solution of this question is given below:
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.