Article View: comp.std.c
Article #36Re: What is the value of `(unsigned) -1' ??
From: Michael Meissner
Date: Fri, 30 Oct 1992 03:52
Date: Fri, 30 Oct 1992 03:52
14 lines
1161 bytes
1161 bytes
In article <MEISSNER.92Oct27121234@tiktok.osf.org> meissner@osf.org (Michael Meissner) writes: | That's because it is implementation defined. In a two's complement | 32-bit system, (unsigned)-1 returns 0xffffffff. In a one's complement | 32-bit system, (unsigned)-1 returns 0xfffffffe. In a sign/magnitude | 32-bit system, (unsigned)-1 returns 0x80000001. As other have mentioned, I goofed up on this one. Sigh..... -- Michael Meissner email: meissner@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142 You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID:
<MEISSNER.92Oct29225232@curley.osf.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!paperboy.osf.org!meissnerReferences:
<1992Oct27.071744.4871@netcom.com> <MEISSNER.92Oct27121234@tiktok.osf.org>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!paperboy.osf.org!meissner From: meissner@osf.org (Michael Meissner) Subject: Re: What is the value of `(unsigned) -1' ?? In-Reply-To: meissner@osf.org's message of 27 Oct 92 12:12:34 Message-ID: <MEISSNER.92Oct29225232@curley.osf.org> Lines: 14 Sender: news@osf.org (USENET News System) Organization: Open Software Foundation References: <1992Oct27.071744.4871@netcom.com> <MEISSNER.92Oct27121234@tiktok.osf.org> Date: Fri, 30 Oct 1992 03:52:37 GMT Lines: 14