6.5.2.4 Postfix increment and decrement operators

Previous Table of Contents

1036 The operand of the postfix increment or decrement operator shall have qualified or unqualified real or pointer type and shall be a modifiable lvalue.

1037 The result of the postfix ++ operator is the value of the operand.

1038 After the result is obtained, the value of the operand is incremented.

1039 (That is, the value 1 of the appropriate type is added to it.)

1040 See the discussions of additive operators and compound assignment for information on constraints, types, and conversions and the effects of operations on pointers.

1041 The side effect of updating the stored value of the operand shall occur between the previous and the next sequence point.

1042 The postfix -- operator is analogous 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).

1043 Forward references: additive operators (6.5.6), compound assignment (6.5.16.2).

Next

Created at: 2005-06-29 02:18:59 The text from WG14/N1124 is copyright © ISO