C C++ Java Data Structure Python JavaScript CSS Ajax PL/SQL PHP Puzzles C programs C++ programs Java programs

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.

Liked this article? Do share with your friends :)

Are you a blogger? Join our Blogging forum.