Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
A reference variable is just another name for an already existing variable. Any operation performed on the reference is actually performed on the original variable.
int a = 100; int &b = a; cout << &a << endl; // 0x7ffd... cout << &b << endl; // 0x7ffd... (SAME!)