Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!princeton!allegra!alice!ark From: ark@alice.UucP (Andrew Koenig) Newsgroups: net.lang.c Subject: Re: Pointers and Arrays Message-ID: <5814@alice.uUCp> Date: Sat, 19-Jul-86 01:11:56 EDT Article-I.D.: alice.5814 Posted: Sat Jul 19 01:11:56 1986 Date-Received: Sun, 20-Jul-86 05:07:40 EDT References: <839@steinmetz.UUCP> Organization: Bell Labs, Murray Hill Lines: 14 > After five years of teaching C, I have to agree with my students that > it makes no sense to forbid this construct. To take the address of > something use the address operator. I have seen this mistake made by > students from major universities, and graduates of courses taught by > high priced consultants, so it's not just my students. All right, tell me: What is the type of the address of an array? That is, suppose I write: int a[10]; What type is &a? Don't tell me it's "pointer to integer" because that is the type of &a[0], and a and a[0] are different things.