Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!ndsuvax!ncbauers From: ncbauers@ndsuvax.UUCP (Michael Bauers) Newsgroups: comp.lang.c Subject: Re: Address of Array Message-ID: <532@ndsuvax.UUCP> Date: Sat, 5-Dec-87 11:21:37 EST Article-I.D.: ndsuvax.532 Posted: Sat Dec 5 11:21:37 1987 Date-Received: Sat, 12-Dec-87 06:31:55 EST References: <126@citcom.UUCP> <2550034@hpisod2.HP.COM> <1854@haddock.ISC.COM> Reply-To: ncbauers@ndsuvax.UUCP (Michael Bauers) Organization: North Dakota State University Fargo, ND Lines: 23 In article <1854@haddock.ISC.COM> karl@haddock.ima.isc.com (Karl Heuer) writes: >In article <2550034@hpisod2.HP.COM> decot@hpisod2.HP.COM (Dave Decot) writes: >>I propose the syntax "a[]" to refer to an lvalue which is the entire array a, >Okay so far. >>and "&(a[])" to signify the address of the entire array a. >Unnecessary, since ANSI has blessed the simpler syntax "&a". Two questions. 1) I hate to sound picky but isn't &(a[]) the address of the array's When you say address of the entire array it sounds like you mean the address of the first element in the array. The convention as I understand it is to talk about it as you would in machine language. So isn't the original System V C complier standard also to refer to the address of the array's address &a. 2) When will the proposed ANSI standard be avaiable? When I interned for Northern Telecom, I was in a class on 'C' where the instructor mentioned this standard. It sounded like a good idea to me. In this standard will a structures address, or the entire structure be passed. I am not sure I like the fact that the entire structure is passed in our verion of C here. It seems that any thing more complex than a simple variable should have its address not its contents passed.