Xref: utzoo comp.lang.c:22420 comp.unix.ultrix:1838 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!tuvie!inst182 From: inst182@tuvie (Inst.f.Techn.Informatik) Newsgroups: comp.lang.c,comp.unix.ultrix Subject: Re: Type of expression sizeof(x) Message-ID: <731@tuvie> Date: 2 Oct 89 13:41:27 GMT References: <256@servio.UUCP> <145@bbxsda.UUCP> Reply-To: inst182@tuvie.UUCP (Inst.f.Techn.Informatik) Followup-To: comp.lang.c Organization: Technical University of Vienna, EDP-Center Lines: 23 In article <145@bbxsda.UUCP> scott@bbxsda.UUCP (Scott Amspoker) writes: > >I hope the ANSI draft doesn't leave this as "implementation dependent". >Some idiot implementor somewhere will make sizeof() return float. ^^^^^ Why not? If someone would write a C compiler for the HP28 calculators, which use 8 bit characters and 20 bit pointers, sizeof (void *) would be 2.5 :-). > >-- >Scott Amspoker >Basis International, Albuquerque, NM >(505) 345-5232 _______________________________________________________________ | __ | | | | | \ | Peter J. Holzer | | |___|__/ | Technische Universitaet Wien | | | | | | | | | | ...!uunet!mcvax!tuvie!asupa!honey!hjphr | | ____/ |--------------------------------------------------| | | Think of it as evolution in action -- Tony Rand | |____________|__________________________________________________|