6.3.2.4 Postfix increment and decrement operators
Constraints
The operand of the postfix increment or decrement operator shall have qualified or unqualified
scalar type and shall be a modifiable lvalue.
Semantics
The result of the postfix ++ operator is the value of the operand. After the result is obtained,
the value of the operand is incremented. (That is, the value 1 of the appropriate type is added to
it.) See the discussions of additive operators and compound assignment for information on
constraints, types, and conversions and the effects of operations on pointers. The side eftect of
updating the stored value of the operand shall occur between the previous and the next sequence
point.
The postfix -- operator is analopous to the postfix ++ operator, except that the value of the
operand is decremented (that is, the value 1 of the appropriate type is subtracted from it)
Forward references: additive operators (6.3.6), compound assignment (6.3.16.2).
Partager