Home »
C++ programming language
Facts about the reference in C++ programming
In previous posts we have discussed about the reference variables in C++ programming language, the posts are that we have already discussed are:
- What are the reference variables in C++?
- Advantages of the reference variables over the pointers.
Facts about the reference in C++ programming
Now, here we will know about some facts of reference variables, those are:
- Reference is a const pointer that means when reference initialized with the variables it cannot re-initialized with another variable; it can refer only one variable.
- Just like pointers, we cannot make reference variable of a reference variable. With the pointers, it was possible to create pointer to pointer variable (that means a pointer can also store the address of another pointer, known as double pointer/pointer to pointer).
- We cannot create the pointer of a reference.