This is an old version, view current version.
8 Compound Arithmetic and Assignment
Compound arithmetic and assignment statements combine an arithmetic operation and assignment,
x = x op y;
replacing them with the compound form
x op= y;
For example, x = x + 1
may be replaced with x += 1
.
The signatures of the supported compound arithmetic and assignment operations are as follows.