Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!tness7!tness1!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.fortran Subject: Re: Fortran versus C for numerical analysis Message-ID: <1511@ficc.uu.net> Date: 15 Sep 88 15:04:47 GMT References: <1484@ficc.uu.net> <3502@lanl.gov> Organization: SCADA Lines: 18 In article <3502@lanl.gov>, jlg@lanl.gov (Jim Giles) writes: > From article <1484@ficc.uu.net>, by peter@ficc.uu.net (Peter da Silva): > > You mean dynamically sized arrays. Dynamically allocated but statically > > sized arrays are implemented like any other array. > No, I've never seen a C dynamically allocated multidimensional array > that wasn't implemented as an array of pointers. char (*twodarray)[10][10]; twodarray = malloc(sizeof(*twodarray)); (*twodarray)[10][5] = 'c'; Now you have. -- Peter da Silva `-_-' Ferranti International Controls Corporation. "Have you hugged U your wolf today?" peter@ficc.uu.net