1.

What are Iterators?(a) STL component used to point a memory address of a container(b) STL component used for vectors(c) STL component used to call functions efficiently(d) STL component used to define template classesI had been asked this question in semester exam.Query is from Iterators topic in portion Algorithms, Objects & Iterators in C++ of C++

Answer» CORRECT answer is (a) STL component used to point a MEMORY address of a container

The best explanation: ITERATORS are STL components used to point a memory address of a container. They are used to ITERATE over container classes.


Discussion

No Comment Found

Related InterviewSolutions