1.

In how many different ways any-container can be constructed?(a) 1(b) 2(c) 3(d) 4The question was asked by my college professor while I was bunking the class.I would like to ask this question from STL Container Any in section Class Hierarchies, Library & Containers of C++

Answer»

The CORRECT answer is (c) 3

Explanation: There are three basic WAYS of CONSTRUCTING any variable. They are done using copy INITIALIZATION, using the CONSTRUCTOR or using an assignment operator.



Discussion

No Comment Found

Related InterviewSolutions