What is meant by reference variable in C++?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a constructor - what it is and how it might be called (2 methods)?

831


What are iterators in c++?

802


What do you mean by ‘void’ return type?

856


Can you write a function similar to printf()?

887


What is pointer -to-members in C++? Give their syntax?

816


Is c++ vector a linked list?

792


what kind of projects are suitable for c and c++

840


What is the full form of stl in c++?

936


Why are pointers used?

767


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2089


Why do we use structure in c++?

800


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

803


What is pointer with example?

758


How does a C++ structure differ from a C++ class?

883


Describe the role of the c++ in the tradeoff of safety vs. Usability?

973