|
![](/i/fill.gif) |
Fredrik Eriksson <fe79}--at--{yahoo}--dot--{com> wrote:
> On Thu, 30 Jul 2009 22:14:16 +0200, Darren New <dne### [at] san rr com> wrote:
> > In other words, neither guarantees that the bit pattern in memory for
> > NULL is actually all zeros, right?
> Right.
OTOH, how many modern architectures have null pointers which are not
all-zeros?
If you are writing C which must be portable to obscure embedded systems,
microwave ovens, 30-years-old obsolete mainframes and such, then you will
have to take that and a whole lot of other things into account. OTOH, if
you are just writing C for the PC, Mac and a few Unix computers out there,
the rules can often be relaxed a bit.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |