Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!nrl-cmf!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: sizeof (integral types) Message-ID: <10164@smoke.BRL.MIL> Date: 29 Apr 89 02:39:39 GMT References: <10044@smoke.BRL.MIL> <7.UUL1.3#5109@pantor.UUCP> <5387@xyzzy.UUCP> <2199@pur-phy> <1514@auspex.auspex.com> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <1514@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >(What happens to "-0" on a one's complement or sign-magnitude machine?) The integer value -0 has to be represented the same as 0, namely all 0 bits. To write a "minus zero" the simplest thing is to write ~0. Of course, the fact that your code is dealing with an explicit minus zero already makes it dependent on ones-complement architecture. (I don't know how to do the equivalent thing on a sign/magnitude architecture; there may be a way.)