Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: What should "sizeof (expression)" return? Why "8" ?? Message-ID: <1988Dec10.231439.26359@utzoo.uucp> Organization: U of Toronto Zoology References: <654@sbsvax.UUCP> <2976@arcturus> Date: Sat, 10 Dec 88 23:14:39 GMT In article <2976@arcturus> evil@arcturus.UUCP (Wade Guthrie) writes: >sizeof (i+r) -- well, here we have to look at the promotion rules for >expressions. On silly compilers (like that on a VAX running VMS), >all floats get promoted to doubles... Not too silly, actually, since this behavior was required by the old C standards (K&R and its immediate descendants). -- SunOSish, adj: requiring | Henry Spencer at U of Toronto Zoology 32-bit bug numbers. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu