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

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004