Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!AI.MIT.EDU!bson From: bson@AI.MIT.EDU (Jan Brittenson) Newsgroups: comp.society.futures Subject: Re: C's sins of commission (was: (pssst...fortran?)) Message-ID: <9009220030.AA03386@rice-chex> Date: 22 Sep 90 00:30:45 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 49 X-Unparsable-Date: Fri, 21 Sep T 20:30:12 EDT From info-futures-request@encore.com Fri Sep 21 19:06:58 1990 Return-Path: Received: from encore.encore.com by life.ai.mit.edu (4.1/AI-4.10) id AA01650; Fri, 21 Sep 90 19:06:52 EDT Received: by encore.encore.com (5.64/25-eef) id AA16278; Fri, 21 Sep 90 18:41:01 -0400 Received: from ucbvax.Berkeley.EDU by encore.encore.com with SMTP (5.64/25-eef) id AA16245; Fri, 21 Sep 90 18:40:43 -0400 Received: by ucbvax.Berkeley.EDU (5.63/1.42) id AA10526; Fri, 21 Sep 90 15:34:13 -0700 Received: from USENET by ucbvax.Berkeley.EDU with netnews for info-futures-mail@encore.com (info-futures@encore.com) (contact usenet@ucbvax.Berkeley.EDU if you have questions) Date: 21 Sep 90 22:21:52 GMT From: sdd.hp.com!uakari.primate.wisc.edu!abcfd20.larc.nasa.gov!ipsun.larc.nasa.gov!jcburt@ucsd.edu (John Burton) Organization: NASA Langley Research Center, Hampton, VA USA Subject: Re: C's sins of commission (was: (pssst...fortran?)) Message-Id: <1990Sep21.222152.22479@abcfd20.larc.nasa.gov> References: <1990Sep21.193403.20381@abcfd20.larc.nasa.gov>, <63751@lanl.gov> Sender: info-futures-request@encore.com To: info-futures@encore.com Status: R In article <63751@lanl.gov> jlg@lanl.gov (Jim Giles) writes: >> Excuse me? are you REALLY saying you CAN'T use arrays in C without >> resorting to pointers??? I'm confused. Does this mean that I can't >> use the statement >> a[i][j] = 123; > Syntactic suger. Try sending the array to a subroutine as a parameter. > Then you'll find out what the array _really_ is. Try referencing the > array in the subroutine with the above statement - lots of luck. bar(some_array) int some_array[3][4]; { some_array[0][1] += some_array[1][0]; } snorf() { int foo[3][4]; bar(foo); } "Look Mom, no pointers!!!"