Previous PageNext Page

7.4.20 Compound Assignment Operators

The compound assignment operators combine computational operators with assignment operators to simplify expressions. The following compound assignment operators are available:
 

Operator Description
+=
 
Compound addition operator.
 
&=
 
Compound bitwise AND operator.
 
|=
 
Compound bitwise OR operator.
 
^=
 
Compound exclusive OR operator.
 
/=
 
Compound division operator.
 
<<=
 
Compound left shift operator.
 
%=
 
Compound modulus operator.
 
*=
 
Compound multiplication operator.
 
>>=
 
Compound right shift operator.
 
-=
 
Compound subtraction operator.
 
>>>=
 
Compound unsigned right-shift operator.
 


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page