Operators

Arithmetic Operators

OperatorDescription
+...
-...
*...

Relational Operators

OperatorDescription
==relational equals
!=relational inequality
>relational greater than
<relational less than
>=relational greater/equals than
<=relational less/equals than

Logical Operators

OperatorDescription
&&logical and
||logical or
!logical negation(unary)

Bitwise Operators

OperatorDescription
& bitwise and
| bitwise or
^ bitwise xor
~ bitwise negation(unary)
<< bitwise left shift
>> bitwise right shift

Assignment Operators

OperatorDescription
= assign a value to a variable
+= increment a variable's value
-= decrement a variable's value
*= multiply a variable's value
++ increment a variable inline
-- decrement a variable inline

Assignment Operators (bitwise)

OperatorDescription
&= -
|= -
<<= -
>>= -