Skip to content
Tools
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Tools
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
Home
X vs Y
C++
Languages
C++ X vs Y
The C++ language, standard library and compilers.
All C++ pages
C++ pointer vs reference: when to use T* or T&
A C++ reference is a non-null alias that cannot be reseated; a pointer can be null, reassigned and used in arithmetic. Which to use for parameters, ownership.
Esc