I am reading about references in C++. It says that int& a = 5 gives compile time error.
int& a = 5
In Thinking in C++ - Bruce Eckel, author says that
What you can do is
int b=5; int &a=b;
or
const int& a = 5;