I was told that in c++ the address of a data type and the address of its reference are same. But when I compiled and executed the following code in Microsoft Visual C++ 6.0, it printed two seperate addresses for i and j. Any ideas, why??
const int i=10;
const int &j=i;
cout<<"\nAddress of i="<<&i<<"\nAdress of j="<<&j<<endl;