Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.lang.f77,net.lang.c Subject: Re: arrays, anyone? Message-ID: <2773@sun.uucp> Date: Tue, 10-Sep-85 03:15:51 EDT Article-I.D.: sun.2773 Posted: Tue Sep 10 03:15:51 1985 Date-Received: Wed, 11-Sep-85 06:29:33 EDT References: <390@ur-helheim.UUCP> <168@rtp47.UUCP> <455@phri.UUCP> Followup-To: net.lang.c Organization: Sun Microsystems, Inc. Lines: 12 Xref: watmath net.lang.f77:378 net.lang.c:6323 > > > Now, in C 2-d arrays are simply an array of pointers to a linear array. > > > > Slight misconception here. In C, multi-dimensional arrays are *not* > > arrays of pointers to linear arrays. > > Ah, but they could be if you were willing to do all the memory > allocation and pointer set-up yourself. In which case you'd have an array of pointers to linear arrays, not a multi-dimensional array. Guy Harris