sizeof and multi-dimensional arrays
Chris Torek
chris at mimsy.umd.edu
Wed Jan 9 03:39:37 AEST 1991
(Two corrections from Karl Heuer)
In article <28950 at mimsy.umd.edu> I wrote:
>C has five different `places' in which array identifiers (including []
>and `*') can appear:
`identifiers' is the wrong word (as it happens, it was left over from a
small edit I made in that section). `Array notations' might be better.
And:
>Incidentally, sizeof can handle values as well as objects: `sizeof 3+4'
>produces the same constant as `sizeof(int)'.
Make that `sizeof(3+4)': otherwise it acts as (sizeof 3) + 4.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at cs.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list