How does computer perform subtracting operation,as it has only ability to perform addition operation?
-
as we know that computer has only ability to perform addition,how it perform subtracting operation,i want atleast 6-7 arguments
-
Answer:
its called two's compliment it works like this Now suppose we want to subtract 12 from 69. Now, 69 - 12 = 69 + (-12). To get the negative of 12 we take its binary representation, invert, and add one. 0000 1100 Invert the digits. 1111 0011 And add one. 1111 0100 The last is the binary representation for -12. As before, we'll add the two numbers together. 0100 0101 + 1111 0100 0011 1001 We result in 57, which is 69-12.
R77PMEBUO73ZWN6WC7VKOOIFFM at Yahoo! Answers Visit the source
Other answers
It decrements and shifts registers.
classicsat
Related Q & A:
- How To Perform Fake Kick In Madden 12?Best solution by Yahoo! Answers
- How do I perform this ActiveRecord query?Best solution by Stack Overflow
- How to perform operation on Arraylist?Best solution by Stack Overflow
- How does the operation of the semilunar valves differ from that of the AV valves?Best solution by Yahoo! Answers
- How to improve my musical ability?Best solution by quora.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.