Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!att!dptg!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: multi-d arrays and types Message-ID: <10632@alice.UUCP> Date: 27 Mar 90 03:50:13 GMT References: <1990Mar26.155319.23986@ccu.umanitoba.ca> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 22 In article <1990Mar26.155319.23986@ccu.umanitoba.ca>, rpjday@ccu.umanitoba.ca writes: > Consider the following snippet of program, involving > a 2-d array for a calendar. > int calendar[12][31]; > int (*monthptr)[31]; This example looks a lot like the one that starts on page 30 of `C Traps and Pitfalls,' so let me quote the comment that ends the discussion of that example: At this point we have walked far enough out on the ice that we had better turn back before falling through; although this last example is valid ANSI C, I had trouble finding a compiler that would accept it. If you don't have an ANSI compiler, and a pretty good one, you're likely to be out of luck. -- --Andrew Koenig ark@europa.att.com