NULL and 0

++Don; mccrady at torolab6.vnet.ibm.com
Thu May 16 05:08:02 AEST 1991


>  I advised somebody something similar to that, telling him (like I
>  learned from the FAQ) that weird machines have weird pointers, that
>  (char*)0 and 0L might have different binary representations and the
>  like. His response to this was:
>          "I claim there are no machines like this"
>  What do you gurus say about this? How about an example of a machine
>  or OS where this is true?

Example:  The IBM AS/400... (char *)0 is 16 bytes long, and not just
16 bytes of zero.  0L is ordinary 2's complement integer, with 4
bytes of zero.

++Don;



More information about the Comp.lang.c mailing list