Increment, Assignment, Decrement

Increment

++i // i = i + 1

i++ //

Decrement

--i // i = i - 1

i-- //

+=

a += b

a = a + b

-=

a -= b

a = a - b

*=

a *= b

a = a * b

/=

a /= b

a = a / b

%=

a %= b

a = a % b

&=

a &= b

a = a & b

= b`

`a = a

b`

^=

a ^= b

a = a ^ b

<<=

a <<= b

a = a << b

>>=

a >>= b

a = a >> b

Last updated