Re: NULL and zeros



Richard Heathfield wrote:
[defensive programming yadda yadda]

I meant it is *implied* and was not written because it wasn't relevant to the
discussion at hand.

Because the Standard requires it. This has long been established for char,
and the Committee, when asked to confirm or deny that it applied to all
integer types, confirmed that it does. So any conforming implementation
must get this right, even if it means doing bitty-box magic under the hood.

You clipped my last segment.

If a machine expressed integer 0 as all 1 bits internally, and I called
memset(&object, 0, sizeof(object)); that's going to result in object set to
all 0 bits?
.



Relevant Pages

  • Re: Free C Compiler on Windows
    ... people are stupid. ... Earlier in the thread you called Richard Heathfield ... I did not treat the standards committee of "stupids". ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: How many levels of pointers can you have?
    ... Ben Pfaff said: ... It's a committee! ... Richard Heathfield ... rjh at the above domain, ...
    (comp.lang.c)