1.

Which function is used to optimize the space in vector?(a) at(b) bool(c) operator(d) operandI had been asked this question by my school principal while I was bunking the class.This question is from Vector Arithmetic in section Strings, Streams & Numerics in C++ of C++

Answer»

The CORRECT answer is (b) bool

Easy EXPLANATION - This is a SPECIALIZED version of VECTOR, which is used for elements of type bool and optimizes for space.



Discussion

No Comment Found

Related InterviewSolutions