[OCLUG-devel] Re: [OCLUG] C - Pointer assignment
Chris Smith
cbsmith at gmail.com
Mon May 23 12:18:01 PDT 2005
Following up to -devel where it's more appropriate.
On 5/23/05, Jack Denman <cashmere at adelphia.net> wrote:
> You must use
> pointer = pointer
> or
> lvalue = lvalue
Well, technically "pointer = value" might work if the compiler is
sufficiently lax, but it undoubtedly represents a case where something
unintended is happening.
lvalue = lvalue
is non-sensical. An lvalue is the left hand side of an assignment
operation. It shouldn't be on the right side. What you normally have
is:
lvalue = rvalue
For details: http://www.embedded.com/story/OEG20010518S0071
--
Chris
More information about the OCLUG-devel
mailing list