Multidimensional Arrays

Chris Torek chris at mimsy.UUCP
Thu Aug 25 03:39:29 AEST 1988


-In article <8584 at ihlpb.ATT.COM> tainter at 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 at ihlpb.ATT.COM> gregg at 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 at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list