Skip to content

Glossary: C++ Basics

Pointer

Also written: pointers

A variable that holds an address, written `int* p`. Use one instead of a reference when "nothing" is a possible answer or it must point at different things over time.

Where the book teaches it

Related terms

AddressDereferencenullptrReference