arrays, anyone?

Guy Harris guy at sun.uucp
Tue Sep 10 17:15:51 AEST 1985


> > > Now, in C 2-d arrays are simply an array of pointers to a linear array.
> > 
> > Slight misconception here.  In C, multi-dimensional arrays are *not*
> > arrays of pointers to linear arrays.
> 
> 	Ah, but they could be if you were willing to do all the memory
> allocation and pointer set-up yourself.

In which case you'd have an array of pointers to linear arrays, not a
multi-dimensional array.

	Guy Harris



More information about the Comp.lang.c mailing list