Path: utzoo!mnetor!uunet!husc6!hao!ames!necntc!ima!haddock!karl
From: karl@haddock.ISC.COM (Karl Heuer)
Newsgroups: comp.lang.c
Subject: Re: Address of Array
Message-ID: <1949@haddock.ISC.COM>
Date: 11 Dec 87 19:57:59 GMT
References: <126@citcom.UUCP> <2550034@hpisod2.HP.COM> <1854@haddock.ISC.COM> <532@ndsuvax.UUCP> <2020@ttrdc.UUCP> <555@ndsuvax.UUCP>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Boston
Lines: 12

In article <555@ndsuvax.UUCP> ncbauers@ndsuvax.UUCP (Michael Bauers) writes:
>But the address of the array's pointer (what this person wanted to know)
>should be &a.

Are you saying that "&a" should mean "&(&a[0])"?  This doesn't make sense, as
"&a[0]" is not an lvalue.  The original question really was talking about the
address of an entire array entity (which differs from the address of the first
element in exactly the same way that the address of a structure differs from
the address of its first member), and this is exactly the problem that X3J11
has fixed by legalizing "&a".

Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint