Path: utzoo!attcan!uunet!peregrine!elroy!ames!ncar!tank!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: Multidimensional Arrays Message-ID: <13179@mimsy.UUCP> Date: 24 Aug 88 17:39:29 GMT References: <8584@ihlpb.ATT.COM> <8585@ihlpb.ATT.COM> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 16 -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