Path: utzoo!attcan!uunet!ubvax!ames!lamaster From: lamaster@ames.arc.nasa.gov (Hugh LaMaster) Newsgroups: comp.lang.fortran Subject: Re: Fortran versus C for numerical anal Message-ID: <15145@ames.arc.nasa.gov> Date: 19 Sep 88 18:59:50 GMT References: <50500075@uxe.cso.uiuc.edu> <3708@lanl.gov> <1530@ficc.uu.net> Reply-To: lamaster@ames.arc.nasa.gov.UUCP (Hugh LaMaster) Organization: NASA Ames Research Center, Moffett Field, Calif. Lines: 20 In article <1530@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >char (*twodarray)[10]; : > twodarray = malloc(10*sizeof(*twodarray)); : > twodarray[9][5] = 'c'; : >Satisfied? I think the point of dynamically sized arrays has been lost here. The capability which C does not have is that of writing a subroutine which does not contain any information on what the size of the array being passed in is at compile time, while using the same syntax as statically sized arrays. -- Hugh LaMaster, m/s 233-9, UUCP ames!lamaster NASA Ames Research Center ARPA lamaster@ames.arc.nasa.gov Moffett Field, CA 94035 Phone: (415)694-6117