1.

What does a reference provide?(a) Alternate name for the class(b) Alternate name for the variable(c) Alternate name for the pointer(d) Alternate name for the objectThis question was posed to me by my college director while I was bunking the class.My doubt is from References in section Types, Pointers, Arrays & Structures in C++ of C++

Answer»

The CORRECT OPTION is (b) Alternate name for the variable

To EXPLAIN: Because we are pointing memory ADDRESS using the temp variable.



Discussion

No Comment Found

Related InterviewSolutions