Quote:
Originally Posted by Ether
Is this just a matter of aesthetics, or does it actually generate more efficient code?
|
That is a question I do not know the answer to. I'm assuming that it is just aesthetic. You are technically using the unary minus operator in both situations because the - in front of the 1 is technically inverting the value of 1.
It is however better practice to place the - in front of the variable instead of multiplying by -1.