const comparison in C and C++
Doug Gwyn
gwyn at smoke.ARPA
Wed Sep 21 07:27:20 AEST 1988
In article <12184 at steinmetz.ge.com> davidsen at crdos1.UUCP (bill davidsen) writes:
> Am I misreading the standard? My interpretation was that uninitialized
>global storage was set to *all bit zero* and that there was something
>that mentioned this might not be zero for types other than integral
>types.
Other way around. When initializers aren't specified for data having
static storage duration, the initial contents are zero (of the
appropriate type), not 0-bit patterns. On several architectures this
distinction has no practical significance, but on some it does.
More information about the Comp.lang.c
mailing list