- Operators work on variables to give a result.
- There are arithmetic, relational, logical and conditional operators.
- Arithmetic
+ (add), - (sub), * (mul), / (div), % (reminder), ++ (inc), -- (dec). - Relational
> (greater than) < (less than), == (equal), != (not equal),
>= (greater than or eq), < = (less than or eq) - Logical
&& (logical AND), & (boolean and Logical AND), || (logical OR) ,
| (boolean logical inclusive OR), ^ (boolean logical exclusive OR), ! (logical NOT) - Conditional
exp1?exp2:exp3