sizeof and multi-dimensional arrays
Dave Eisen
dkeisen at Gang-of-Four.Stanford.EDU
Sat Jan 5 16:06:13 AEST 1991
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 at Gang-of-Four.Stanford.EDU
More information about the Comp.lang.c
mailing list