1.

What are Iterators?(a) Iterators are used to iterate over C-like arrays(b) Iterators are used to iterate over pointers(c) Iterators are used to point memory addresses of STL containers(d) Iterators are used to iterate over functionsI got this question in a job interview.Origin of the question is Standard Template Library in section Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

The CORRECT answer is (c) ITERATORS are used to point memory addresses of STL containers

The best explanation: In C++, Iterators are provided to ITERATE over the STL containers.



Discussion

No Comment Found

Related InterviewSolutions