What is a reference in C++?



What is a reference in C++?..

Answer / 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

More C++ General Interview Questions

Program to check whether a word is a sub-string or not of a string typed

0 Answers  


without if else statement can be written ah

0 Answers  


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

0 Answers  


what is importance of data sturture in a programming language?

22 Answers   L&T, TCS, Wipro,


Is C++ case sensitive a) False b) Depends on implementation c) True

0 Answers  






Why did you leave your last job?

2 Answers  


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

0 Answers  


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

0 Answers  


How long does it take to get good at leetcode?

0 Answers  


What is c++ stringstream?

0 Answers  


Will rust take over c++?

0 Answers  


Why are arrays usually processed with for loop?

0 Answers  


Categories