1.

What are the references in C++?(a) An alternative name for already existing variables(b) A pointer to a variable(c) A new type of variables(d) A new type of constant variableThis question was posed to me in an internship interview.My question is based upon References in chapter Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Right answer is (a) An alternative name for already existing variables

Explanation: REFERENCES are an alternative name for an already defined variable. They are DIFFERENT from POINTERS.



Discussion

No Comment Found

Related InterviewSolutions