If C++, if I write:
int i = 0; int& r = i;
then are i and r exactly equivalent?
i
r
The syntax int &r=i; creates another name i.e. r for variable i.hence we say that r is reference to i.if you access value of r,then r=0.Remember Reference is moreover a direct connection as its just another name for same memory location.