What is reference variable in C++?- A reference variable is just like a pointer with a few differences.
- It is declared using '&' operator.
- A reference variable must be initialized.
- The reference variable once defined to refer to a variable cannot be changed to point to other variable.
- You cannot create an array of references the way it is possible with pointer.
- It is mostly used for function argument lists and function return values.