Path: utzoo!attcan!uunet!pyrdc!pyrnj!rutgers!cmcl2!lanl!jlg From: jlg@lanl.gov (Jim Giles) Newsgroups: comp.lang.fortran Subject: Re: Fortran versus C for numerical analysis Message-ID: <3502@lanl.gov> Date: 13 Sep 88 22:05:20 GMT References: <1484@ficc.uu.net> Organization: Los Alamos National Laboratory Lines: 14 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. For a two dimensional array, each pointer in the array of pointers points to a row of the array. Higher dimensions are implementes as pointers_to_pointers_to_.... the number of indirect levels is one less than the number of dimensions. - This is _NOT_ 'like any other array'. J. Giles Los Alamos