Glossary: Null Pointer
A null pointer is a
that is currently pointing to nothing.
Often pointers are set to zero to make
them null pointers or tested against zero to see if they are null, e.g.:-
TObject mypointer = 0;
if ( mypointer ) printf("mypointer is pointing to something\n");
the C++ standard does not require that a null pointer be represented by
zero - although it does require that assignments and tests against zero work as
if it were.
See OO Concepts: 1Pointers and References
Go Back to the
The Glossary Top Page
If you have any comments about this page please send them to