Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2001 17:32:49 +0100 (BST)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        Duke Normandin <01031149@3web.net>
Cc:        Freebsd Questions <freebsd-questions@freebsd.org>
Subject:   Re: OT - C Pointers
Message-ID:  <Pine.GSO.4.31.0104281730490.27668-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <20010427193048.A70243@mandy.rockingd.calgary.ab.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 27 Apr 2001, Duke Normandin wrote:

>
> Hi guys...
>
> Little OT if I might -- please!
>
> Ted Jensen, in his "A Tutorial on Pointers and Arrays in C" states,

[cut]

> Ruurd Pels, in his "A Brief Tutorial on Pointers, Lvalues, & Rvalues"
> states:
>
> [some text snipped for brevity]
>
> "   Definitions:
>
>     rvalue    the attribute of a variable that holds the address where
>               that particular variable is stored.
>     lvalue    the attribute of a variable that holds the value of the
>               variable.

> I'm confused!! In his "Definitions:" above, did Pels get rvalue and lvalue
> switched around?

Yes. The "l" in "lvalue" comes from the fact that you need an lvalue on
the left-hand-side of the assignment operator.

jan

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk
If it's broken really badly - don't fix it either.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.31.0104281730490.27668-100000>