all bits zero?

Georg Wittig wittig at gmdzi.UUCP
Tue Mar 20 19:36:12 AEST 1990


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 at gmdzi.uucp   phone: (+49 2241) 14-2294
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Freedom's just another word for nothing left to lose" (Kris Kristofferson)



More information about the Comp.std.c mailing list