![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Some common arithmetic operators are listed below.
= assignment + addition - subtraction * multiplication / division % modulo reduction ++ increment -- decrement |
Note that multiplication, division, and modulo reduction ( %) operations will be performed before addition and subtraction in any expression. When division is performed on two integers, the result is an integer with the remainder discarded. Modulo reduction is the remainder from integer division. The ++ operator is a shorthand notation for the increment operation.