1.

What type of reference should be used in vector arithmetic?(a) dynamic(b) const(c) both dynamic & const(d) staticThe question was posed to me in an international level competition.The query is from Vector Arithmetic topic in chapter Strings, Streams & Numerics in C++ of C++

Answer»

Correct choice is (B) CONST

Explanation: As we are using the vector and it will give accurate RESULT if we USE const reference.



Discussion

No Comment Found

Related InterviewSolutions