OPERATOR: assignment:
= += = *= /= div= %= <<=
>>= >>>= &= = ^=
The assigment operators are used
set the value of an operand by permitting shorthand versions of standard
arithmetic operations. Please refer to the arithmetic operators.
=
The basic assignment operator is the equal sign, which assigns the value
(literal or variable) on its right to the variable on its left:
Code:
x = a;
+= = *= /= div=
%=
The equal sign is combined with the +, , *, /, div and % operators to
give the following shorthand versions of standard arithmetic operations:
Code:
a +=
b 
instead of 
a = a + b 
a =
b 
instead of 
a = a  b

a *=
b 
instead of 
a = a * b 
a /=
b 
instead of 
a = a / b 
a div=
b 
instead of 
a = a div b 
a %=
b 
instead of 
a = a % b 
<<= >>= >>>=
&= = ^=
The equal sign can also be combined with the <<, >>, >>>, &, , and ^
operators to give the following shorthand versions of standard bitwise
operations:
Code:
a <<=
b 
instead of 
a = a << b 
a >>=
b 
instead of 
a = a >> b

a >>>=
b 
instead of 
a = a >>> b 
a &=
b 
instead of 
a = a & b 
a =
b 
instead of 
a = a  b 
a ^=
b 
instead of 
a = a ^ b 
Copyright 19992001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
