|
4.5.3 int operations
++
- changes its operand to its successor, is itself no int expression
--
- changes its operand to its predecessor, is itself no int expression
+
- addition
-
- negation or subtraction
*
- multiplication
div , /
- integer division (omitting the remainder), rounding toward 0
% , mod
- integer modulo (the remainder of the division
^ , **
- exponentiation (exponent must be non-negative)
< , > , <= , >= , == , <>
- comparators
Note: An assignment j=i++; or j=i--; is not allowed,
in particular it does not change
the value of j , see Limitations.
Example:
|