All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Null pointer?

Definition 4.2 University Computer Science — Year 1 · Chapter 4 — Pointers and Arrays

The null pointer of a pointer type, written NULL (or 0), compares unequal to the address of every object and function. It means “points to nothing”: a function that finds nothing returns it, and a pointer variable not yet given a target should hold it. Dereferencing the null pointer is undefined behaviour.

Read in context →