What is meant by reference variable in C++?



What is meant by reference variable in C++?..

Answer / hrpynux@gmail.com

A reference variable is an alias, that is, another name for an already existing variable. Once a reference is initialized with a variable, either the variable name or the reference name may be used to refer to the variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

what is scupper?

0 Answers  


Is map sorted c++?

0 Answers  


Can member functions be private?

0 Answers  


What is a storage class? Mention the storage classes in c++.

0 Answers  


What is meant by const_cast?

0 Answers  






What are the extraction and insertion operators in c++?

0 Answers  


What is rtti in c++?

0 Answers  


In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.

5 Answers   GE,


Describe Trees using C++ with an example.

0 Answers  


Which is not a valid keyword a) public b) protected c) guarded

0 Answers  


What is the best ide for c++?

0 Answers  


Can member data be public?

0 Answers  


Categories