- Start by introducing
int b = a;- This is copy by value
- Shouldn't changing
bchangea?
- What is a reference?
- Alias to an existing variable
- Restrictions on references
- Cannot be undefined
- Cannot be changed
-
C++ References in 7 Minutes: Everything You Need to Know
-
What C++ References Actually Turn Into in Assembly
-
C++ References Explained
-
I Traced a C++ Reference Into x86 Assembly
-
Senior C++: How References Actually Work in Memory
-
How do C++ references actually work in x86 assembly?
-
Understanding C++ References
-
What C++ References Actually Turn Into (x86-64 Assembly)
-
C++ References Explored Through the Lens of x86 Assembly
- ChatGPT and Gemini