Xref: utzoo comp.lang.c:7588 comp.lang.fortran:474 Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!agate!ig!uwmcsd1!bbn!rochester!PT.CS.CMU.EDU!IUS1.CS.CMU.EDU!edw From: edw@IUS1.CS.CMU.EDU (Eddie Wyatt) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: Conformant Arrays in C Message-ID: <970@PT.CS.CMU.EDU> Date: 26 Feb 88 14:45:20 GMT References: <42529@sun.uucp> <7297@brl-smoke.ARPA> <1491@tekcae.TEK.COM> Sender: netnews@PT.CS.CMU.EDU Organization: Carnegie-Mellon University, CS/RI Lines: 16 Keywords: ANSI C Fortran > Look at "The C Programming Language" by Kernighan & Ritchie on p. 110. If you > set up your array like int *b[10] you can treat it as a conformal 2-d array > without having to pass ANY bounds information (except for whatever the > procedure logic requires). But you have to access the array as if it where a n by 10 matrix. This method does not provide for n by m by .... arrays. At most you may leave the first dimension (the rows) unspecified. -- Eddie Wyatt e-mail: edw@ius1.cs.cmu.edu