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:

  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.

Was this page helpful? YES NO

Are you a blogger? Join our Blogging forum.

Comments and Discussions

© https://www.includehelp.com (2015-2018), Some rights reserved.

Like other websites, this site uses cookies to deliver relevant ads based on your interest, by using our website, you acknowledge that you have read our privacy policy.