DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
C language compilers

Expressions

Objects and lvalues

An object is a manipulatable region of storage. An lvalue is an expression referring to an object. An obvious example of an lvalue expression is an identifier. There are operators that yield lvalues: for example, if E is an expression of pointer type, then *E is an lvalue expression referring to the object to which E points.

An lvalue is ``modifiable'' if:

and, if it is a structure or union, it does not have any member (including, recursively, any member of all contained structures or unions) with a const-qualified type.

The name ``lvalue'' comes from the assignment expression E1 = E2 in which the left operand E1 must be an lvalue expression.

Primary expressions


Next topic: Operators
Previous topic: Usual arithmetic conversions

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005