On Wed, Mar 4, 2009 at 2:24 PM, John Matthews <[email protected]> wrote:
> On a machine where NULL is represented internally by 0, both these functions > will return 1. > > On machines where NULL is represented internally by a non-0 value, fn1() will > still return 1, > but what about fn2()? That is, p is initialised to 0, but is that an > 'internal' 0 (function returns 0) > or a 'pointer context' 0 (function returns 1)? <http://c-faq.com/null/machnon0.html> Don't rely on NULL being all bits zero. -- PJH http://shabbleland.myminicity.com/ind http://www.chavgangs.com/register.php?referer=9375
