Q:

What is a reference in C++?

0

What is a reference in C++?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

reference defines an alternative name for an object or you can say that it is an alias of a referring object. In programming, we define the reference of an object by using the & with followed by the reference name.

Example,

//create an variable
int data = 6;
//rOffData refer to data
int& rOffData = data;

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions and Answers(2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the default constructor in c++?... >>
<< What is an abstraction in C++?...