From owner-freebsd-questions Sat Apr 28 9:33: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 3789837B423 for ; Sat, 28 Apr 2001 09:33:00 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Sat, 28 Apr 2001 17:32:54 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 14tXeL-0007G8-00; Sat, 28 Apr 2001 17:32:49 +0100 Date: Sat, 28 Apr 2001 17:32:49 +0100 (BST) From: Jan Grant To: Duke Normandin <01031149@3web.net> Cc: Freebsd Questions Subject: Re: OT - C Pointers In-Reply-To: <20010427193048.A70243@mandy.rockingd.calgary.ab.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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