symbol += number symbol -= number symbol *= number symbol /= number symbol %= number symbol &= number symbol ^= number symbol <<= number symbol >>= number
These operators provide a shorthand way of reassigning values to symbols.
+= gives the sum of the symbol and the number.
-= gives the difference between the symbol and the number.
*= gives the product of the symbol and the number.
/= gives the symbol divided by the number.
% gives the modulus of the symbol by the number, that is, the remainder of the integer division of the symbol by the number.
&= performs the & operation on the symbol and the number.
^= performs the ^ operation on the symbol and the number.
<<= performs the << operation on the symbol and the number.
>>= performs the >> operation on the symbol and the number.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.