Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.lang.c Subject: Re: sizeof and multi-dimensional arrays Message-ID: <29000@mimsy.umd.edu> Date: 8 Jan 91 16:39:37 GMT References: <1991Jan5.050613.22303@Neon.Stanford.EDU> <28950@mimsy.umd.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 17 (Two corrections from Karl Heuer) In article <28950@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@cs.umd.edu Path: uunet!mimsy!chris