References have to be initialized, and will represent the variables assigned to them.
int x=10,y=5;
//wrong
int &A;
A=x;
//right
int &A=x;
//set x's value by y
A=y;
References have to be initialized, and will represent the variables assigned to them.
int x=10,y=5;
//wrong
int &A;
A=x;
//right
int &A=x;
//set x's value by y
A=y;