Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!rna!cubsvax!peters From: peters@cubsvax.UUCP (Peter S. Shenkin) Newsgroups: net.lang.c Subject: Re: C vs. FORTRAN (was: What should be Message-ID: <481@cubsvax.UUCP> Date: Wed, 11-Jun-86 12:41:41 EDT Article-I.D.: cubsvax.481 Posted: Wed Jun 11 12:41:41 1986 Date-Received: Sat, 14-Jun-86 07:03:01 EDT References: <692@bu-cs.UUCP> Reply-To: peters@cubsvax.UUCP (Peter S. Shenkin) Organization: Columbia Univ. Bio. CG Fac., NY Lines: 15 In article liberte@uiucdcsb.CS.UIUC.EDU writes: > >This discussion reminds me of when I had to write a program (in FORTRAN) >to manipulate an array with a dynamically specified number of DIMENSIONS, >as well as dynamically specified size of each dimension. Only APL would >have helped (that I know of). My initial thought was: of course you can do this in C, using a linear array and explicit pointer arithmetic, rather than array notation; on the other hand you can do this just as easily in FORTRAN, using a linear array and the identical arithmetic (modulo array origin!) on the *index* into the array.... Peter S. Shenkin Columbia Univ. Biology Dept., NY, NY 10027 {philabs,rna}!cubsvax!peters cubsvax!peters@columbia.ARPA