The many meanings of NULL

This tip submitted by Rajat Kochhar on 2005-05-22 08:12:00. It has been viewed 62647 times.
Rating of 5.8 with 331 votes

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!

More tips

Help your fellow programmers! Add a tip!