Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!bullwinkle!batcomputer!garry From: garry@batcomputer.TN.CORNELL.EDU (Garry Wiegand) Newsgroups: net.lang.c Subject: Re: Address of array Message-ID: <428@batcomputer.TN.CORNELL.EDU> Date: Thu, 20-Mar-86 17:47:11 EST Article-I.D.: batcompu.428 Posted: Thu Mar 20 17:47:11 1986 Date-Received: Sat, 22-Mar-86 22:31:55 EST Reply-To: garry%geology@cu-arpa.cornell.edu.arpa Organization: Cornell Engineering && Flying Moose Graphics Lines: 20 In a recent article jsdy@hadron.UUCP (Joseph S. D. Yao) wrote: >... There is no such thing as a pointer to the whole >array: that is a Pasqualische or Fortranian notion. Pointers, in >C, only point to atomic or aggregate (structure/union) objects... Are you sure of this? I sometimes write: foo (ap) register float (*ap)[4][4]; {... (*ap)[0][0] = 33; ...} I do this because my compiler (DEC/Vms) ends up making slightly better use of registers than if I wrote: foo (array) float array[4][4]; {... array[0][0] = 33; ...} (and because it's slightly more pleasing to my brain actually to say "pointer- to-array" if that's what I'm thinking of). Are you saying my syntax is legal only by the grace of DEC? garry wiegand garry%cadif-oak@cu-arpa.cs.cornell.edu