Skip to content

Operators

Rohan Singh edited this page Aug 21, 2014 · 30 revisions

The following operators are available, in order of precedence:

Category Operators
Postfix x.y, x[y], x(y), x++, x--
Prefix -x, !x, ++x, --x
Multiplication *, /, %
Addition +, -
Relational >, >=, <, <=
Equality ==, !=
Conditional And &&
Conditional Or ||
Ternary ?:
Assign =, +=, -=, *=, /=, %=