Search⌘ K

Dereferencing Operator

Explore how to use the dereferencing operator in C++ to access the value a pointer is referencing. This lesson helps you understand pointer functionality and avoid errors from dereferencing uninitialized pointers.

Indirection/dereferencing operator

Consider the example given in the previous lesson. John's storage house is pointing to Alice's storage house, so John is a pointer here. What if John wanted to know what value is stored ...