Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!agate!shelby!neon!Gang-of-Four!dkeisen From: dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) Newsgroups: comp.lang.c Subject: sizeof and multi-dimensional arrays Message-ID: <1991Jan5.050613.22303@Neon.Stanford.EDU> Date: 5 Jan 91 05:06:13 GMT Sender: news@Neon.Stanford.EDU (USENET News System) Organization: Sequoia Peripherals Lines: 17 Is the following a compiler bug or am I just confused? char x[2][3]; sizeof (*x) gives 6 sizeof (x[0]) gives 3. What's the scoop? -- Dave Eisen There's something in my library 1447 N. Shoreline Blvd. to offend everybody. Mountain View, CA 94043 --- Washington Coalition Against Censorship (415) 967-5644 dkeisen@Gang-of-Four.Stanford.EDU