Wednesday, February 11, 2009

If a machine uses some nonzero internal bit pattern for null pointers, how should the NULL macro be defined?

Answer: As 0 (or (char *)0), as usual. The *compiler* is responsible for translating null pointer constants into internal null pointer representations, not the
preprocessor.

No comments: