Assignment operators

An assignment expression stores a value in the object designated by the left operand. There are two types of assignment operators:

The left operand in all assignment expressions must be a modifiable lvalue. The type of the expression is the type of the left operand. The value of the expression is the value of the left operand after the assignment has completed.

C onlyThe result of an assignment expression is not an lvalue. C++ only The result of an assignment expression is an lvalue.

All assignment operators have the same precedence and have right-to-left associativity.

Related information



[ Top of Page | Previous Page | Next Page | Contents | Index ]