🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1104

all bits zero?

#1104
From: Georg Wittig
Date: Tue, 20 Mar 1990 09:36
14 lines
974 bytes
Does ANSI C require that in the internal representation of the integer constant
``0'' all bits are zero?

What about ``0x0'' (hex.) or ``0000'' (oct.)?

If it IS allowed that in the internal representation not all bits are zero, is
it then possible to write a #if expression that tests if all bits of the integer
constant ``0'' are zero?
-- 
Georg Wittig   GMD-Z1.BI   P.O. Box 1240   D-5205 St. Augustin 1 (West Germany)
email: wittig@gmdzi.uucp   phone: (+49 2241) 14-2294
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Freedom's just another word for nothing left to lose" (Kris Kristofferson)
Technical Details
Message-ID: <2108@gmdzi.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!unido!gmdzi!wittig

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!unido!gmdzi!wittig
From: wittig@gmdzi.UUCP (Georg Wittig)
Newsgroups: comp.std.c
Subject: all bits zero?
Message-ID: <2108@gmdzi.UUCP>
Date: 20 Mar 90 09:36:12 GMT
Organization: GMD - The German National Research Centre for Computer Science
Lines: 14