Monday, May 16, 2011

The many meanings of NULL

There are three uses of the word null:

1. A null pointer is a pointer which doesn't point anywhere.

2. A NULL macro is used to represent the null pointer in the source code. It has a value of 0 associated with it.

3. The ASCII NULL character has all its bits as 0 but doesn't have any relationship with the null pointer!