C++ · Pointers and references

Lifetimes and dangling pointers

A pointer can outlive the memory it points at, and the program then reads whatever happens to be there.