Skip to content

Glossary: C++ Basics

Dangling

Also written: dangling reference, dangling pointer

A reference or pointer to something that no longer exists, such as a local variable after its function has returned. Using it is a bug.

Where the book teaches it

Related terms

ReferencePointerUndefined behavior