home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!ark
- From: ark@alice.att.com (Andrew Koenig)
- Newsgroups: comp.lang.c
- Subject: Re: Pointer/address reluctance
- Message-ID: <23530@alice.att.com>
- Date: 23 Aug 92 03:55:52 GMT
- Article-I.D.: alice.23530
- References: <10444.610.uupcb@spacebbs.com>
- Reply-To: ark@alice.UUCP ()
- Distribution: na
- Organization: AT&T Bell Laboratories, Murray Hill NJ
- Lines: 11
-
- In article <10444.610.uupcb@spacebbs.com> ted.jensen@spacebbs.com (Ted Jensen) writes:
-
- > Based on the above definitions (which I feel few could argue
- > with), a pointer is an lvalue whereas an address is not.
-
- ... except that there are pointer-valued expressions that are not lvalues.
- For example, if p is a variable of pointer type, p is obviously an
- lvalue, but p+0 is not, even though p==p+0 by definition.
- --
- --Andrew Koenig
- ark@europa.att.com
-