Arithmetic operators

Assignment

Initialize or change the value of a variable.

= 

Arithmetic

Addition

+

Subtraction

-

Multiplication


Division

/

Modulo

%

Plus-Equal (Increment a variable.)

+=

Minus-Equal (Decrement a variable.)

-=

Times-Equal (Multiply a variable.)


Slash-Equal (Divide a variable.)

/=

Mod-equal (Remainder of dividing a variable.)

%=

Bitwise

Bitwise left shift.

<<

Left-shift-equal.

<<=

Bitwise right shift.

>>

Right-shift-equal.

>>=

Bitwise AND

&

Bitwise AND-equal

&=

Bitwise OR

|

Bitwise OR-equal

|=

Bitwise NOT

~

Bitwise XOR

^

Bitwise XOR-equal

^=

Logical

NOT

!

AND

&&

OR

||

Miscellaneous

Comma separator

,

Example usage:

((a=1,b=2,c=3))