more questions about efficient C code

Chris Torek chris at umcp-cs.UUCP
Wed Jul 3 14:30:11 AEST 1985


Let's not start this again... the value of an assignment is the LHS,
not the RHS.  Ref. ANSI draft X3J11, sec. C.3.16, Assignment Operators:

Constraints:
    Each assignment operator must have an lvalue as its left operand.

Semantics
    An assignment operator stores a value in the object specified by
the lvalue.  An assignment expression has the type of the left operand
and the value of the left operand after the assignment.  The storage
must take place before the value of the assignment is used.

    The order of evaluation of the right operand and the lvalue is
unspecified.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.lang.c mailing list