What is reference variable in C++?

What is reference variable in C++?

- A reference variable is just like a pointer with a few differences.

- It is declared using '&' operator.

- A reference variable must be initialized.

- The reference variable once defined to refer to a variable cannot be changed to point to other variable.

- You cannot create an array of references the way it is possible with pointer.

- It is mostly used for function argument lists and function return values.
What is class using C++?
Class using C++ - A class holds the data and functions that operate on the data....
What is local class in C++?
Local class in C++ - Local class is define within the scope of a function and nested within a function...
What is the default access level? - C++
Default access level - The access privileges in C++ are private, public and protected. The default access....
Post your comment
Discussion Board
I like it
shashi 02-20-2016