Conformant Arrays in C

Eddie Wyatt edw at IUS1.CS.CMU.EDU
Sat Feb 27 00:45:20 AEST 1988


> 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 at ius1.cs.cmu.edu



More information about the Comp.lang.c mailing list