Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!amdcad!sun!pitstop!sundc!seismo!uunet!ndsuvax!ncbauers
From: ncbauers@ndsuvax.UUCP (Michael Bauers)
Newsgroups: comp.lang.c
Subject: Re: Address of Array
Message-ID: <555@ndsuvax.UUCP>
Date: 9 Dec 87 17:31:03 GMT
References: <126@citcom.UUCP> <2550034@hpisod2.HP.COM> <1854@haddock.ISC.COM> <532@ndsuvax.UUCP> <2020@ttrdc.UUCP>
Reply-To: ncbauers@ndsuvax.UUCP (Michael Bauers)
Organization: North Dakota State University  Fargo, ND
Lines: 11


	I must learn to write better, people keep telling me that with
a pointer is associated a type.  I know this...I program in C.  What I
was objecting to was when someone said 'address of array.'  What they
had meant to say I think was 'The adress of the array's pointer.'  I was
just noting that this was confusing.  I was confused anyway.  The article
I was responding to was talking about taking the address of an array.  The
address of the array a[10] is just a.  The address of the first element
is also a (for single dimension arrays).  The first element is *a.  But
the address of the array's pointer (what this person wanted to know)
should be &a.