Home Page
About Us


Addition is a mathematical operation that represents combining collections of objects together into a larger collection


Subtraction is a mathematical operation that represents the removal of an object from a collection.



Addition subtraction assignment has lower procedure than simply add operation

from question  

Can't understand x *= y+1 output

This took 6 steps but leads to a number that could be arrived at in 5 steps subtract 1 divide 3 times add 1 so clearly we should not perform the addition;subtraction is always better

from question  

Minimum number of steps to reduce number to 1

Addition and subtraction is worse as these have to be done in sequence of two operations and the second operation requires the first to have completed - this is not the case if the compiler is just producing two add operations on independent data

from question  

What is the performance impact of using int64_t instead of int32_t on 32-bit systems?

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0