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:

  1. What are the reference variables in C++?
  2. Advantages of the reference variables over the pointers.

Now, here we will know about some facts of reference variables, those are:

  1. 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.
  2. 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).
  3. We cannot create the pointer of a reference.

Related Tutorials

Comments and Discussions!

Load comments ↻

Copyright © 2024 www.includehelp.com. All rights reserved.