What is a reference in C++?

Answer Posted / hrpynux@gmail.com

References are the third basic kind of variable that C++ supports. A reference is a C++ variable that acts as an alias to another object or value. C++ supports three kinds of references: References to non-const values (typically just called “references”, or “non-const references”), which we'll discuss in this lesson.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there structure in c++?

591


Difference between declaration and definition of a variable.

589


Define Virtual function in C++.

627


When do we use copy constructors?

597


Explain selection sorting?

638






What do you mean by static variables?

602


What is the best c++ book?

712


Is c++ still in demand?

634


What is atoi in c++?

570


why is iostream::eof inside a loop condition considered wrong?

595


What is protected inheritance?

602


What are static type checking?

634


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

605


What is c++ and its features?

578


How can you tell what shell you are running on unix system?

643