Skip to content

Glossary: C++ Basics

Reference

Also written: references, reference parameter

Another name for an existing variable, written `int& r = x;`. As a parameter it is the caller's own variable, so changes reach the caller.

Where the book teaches it

Related terms

const referencePointerDangling