Refrences as an alias

Because a reference is just another name for the object to which it is bound, all operations on a reference are actually operations on the underlying object to which the reference is bound. Example :

Example

#include <iostream>

int main() {
    int a = 10;
    int &b = a;
    std::cout<<"Before Incrementing\n"<<a;
    std::cout<<"\n"<<b;
    a = 60;
    
    std::cout<<"after Incrementing\n"<<a;
    std::cout<<"\n"<<b;
    
	getchar();
	return 0;
}

Output

Before Incrementing
10
10after Incrementing
60
60