Dynamic multidimensional arrays

Doug Gwyn gwyn at brl-smoke.ARPA
Thu Jun 16 17:43:01 AEST 1988


In article <3342 at ut-emx.UUCP> chpf127 at 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.



More information about the Comp.lang.c mailing list