What does the term "Compound operator" mean?

These are quicker ways of writing binary operators where you update one of the values you are using.

OperatorUseDescription
+=x += 4x = x + 4
-=x -= 4x = x – 4
*=x *= 4x = x * 4
/=x / = 4x = x / 4
%=x %= 4x = x % 4

Leave a Reply

Thank you for choosing to leave a comment. Comments may be moderated.