Strange Assignment Operators
C's Shorthand Assignment Operators
operator
shorthand
equivalent
+=
X
+=
Y
X = X + Y
-=
X
-=
Y
X = X - Y
*=
X
*=
Y
X = X * Y
/=
X
/=
Y
X = X / Y
%=
X
%=
Y
X = X % Y