1.

Which of the following is correct about Input Iterators?(a) Input iterators can be used with all relational operators(b) Input iterators can work with arithmetic operators(c) No value can be assigned to the location pointed by Input Iterator(d) Input iterators can work with sequence operatorsI had been asked this question in homework.This interesting question is from Iterators topic in portion Algorithms, Objects & Iterators in C++ of C++

Answer»

The CORRECT option is (c) No value can be assigned to the location pointed by INPUT Iterator

To explain: VALUES cannot be assigned to the location pointed by input OPERATORS. Input operators cannot be used with all relational and arithmetic operators.



Discussion

No Comment Found

Related InterviewSolutions