[comp.lang.c] Multidimensional Arrays

chris@mimsy.UUCP (Chris Torek) (08/25/88)

-In article <8584@ihlpb.ATT.COM> tainter@ihlpb.ATT.COM (Tainter) writes:
->...  As long as only one dimension is unknown C can generate
->code to manipulate the structure without requiring patching at link time.

In article <8585@ihlpb.ATT.COM> gregg@ihlpb.ATT.COM (Wonderly) writes:
-This looks to be a simple ilef vector.  ... or in assembler (as the
-compiler sees it)   int foo[][]     Compiler says OHHHH there are
-missing dimensions, I can't possibly know how to do the multiplication,
-so lets use pointers instead.

This would work---that is, you can come up with a self-consistent system
that does this---but that is not how C is defined.  (Many of you probably
already know this, but it was not made clear in Gregg's article.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris