References behaves similarly, but not entirely like const pointers. A reference is defined by suffixing an ampersand & to a type name.
int i = 10;
int &refi = i;
Here, refi is a reference bound to i.
References abstracts the semantics of pointers, acting like an alias to the underlying...