6.5.16 Assignment operators

Previous Table of Contents "New C Standard" commentary

1288

assignment-expression:
                conditional-expression
                unary-expression assignment-operator assignment-expression

assignment-operator: one of = *= /= %= += -= <<= >>= &= ^= |=

1289 An assignment operator shall have a modifiable lvalue as its left operand.

1290 An assignment operator stores a value in the object designated by the left operand.

1291 An assignment expression has the value of the left operand after the assignment, but is not an lvalue.

1292 The type of an assignment expression is the type of the left operand unless the left operand has qualified type, in which case it is the unqualified version of the type of the left operand.

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

1294 The order of evaluation of the operands is unspecified.

1295 If an attempt is made to modify the result of an assignment operator or to access it after the next sequence point, the behavior is undefined.

Next

Created at: 2008-01-30 02:39:43 The text from WG14/N1256 is copyright © ISO