Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!uvaarpa!mcnc!rti!xyzzy!throopw
From: throopw@xyzzy.UUCP (Wayne A. Throop)
Newsgroups: comp.lang.c
Subject: Re: Address of Array
Message-ID: <412@xyzzy.UUCP>
Date: Tue, 1-Dec-87 17:09:05 EST
Article-I.D.: xyzzy.412
Posted: Tue Dec  1 17:09:05 1987
Date-Received: Fri, 4-Dec-87 22:47:03 EST
References: <126@citcom.UUCP>
Organization: Data General, RTP NC.
Lines: 16

> jack@citcom.UUCP (Jack Waugh)
> It recently occurred to me that there is no syntax to take the
> address of an array, although an expression of that type can be
> derived from an array of arrays, and a variable of that type
> can be declared.  The obvious syntax, &a, is incorrect because
> you can only & an lvalue.

Correct.  This deficency is fixed in the draft ANSI standard for C,
X3J11, by making objects of array type non-modifiable lvalues.  See
section 3.2.2.1 of the November 9th version of the draft standard for
an explanation of what goes on for constructs such as (&array).

--
"Suddenly I feel so... sapient."
                        --- Fluffy
-- 
Wayne Throop      !mcnc!rti!xyzzy!throopw