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.






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.