Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Dynamic multidimensional arrays Message-ID: <8096@brl-smoke.ARPA> Date: 16 Jun 88 07:43:01 GMT References: <10655@agate.BERKELEY.EDU> <1857@hubcap.UUCP> <4556@haddock.ISC.COM> <3342@ut-emx.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <3342@ut-emx.UUCP> chpf127@ut-emx.UUCP (J. Eaton) writes: > What if I decide I would like to have negative as well as positive > (or zero) indices for arrays? > Standard Fortran allows this. Doesn't C? Sure it does, so long as there is a valid object at the referenced location. In fact I'm just about to change some application code's dynamic array allocation so that [-1] will be a valid offset.