C++ Containers Question:
Download Questions PDF

Explain different types of iterators, i.e. input_iterator, output_iterator etc?

Answer:

Input Iterator: These iterators can read values in the forward movement. They can be incremented, compared and dereferenced.
Ouptut Iterator: They write values in the forward movement. They can be incremented and dereferenced.
Forward Iterator: They are like input and output iterators that can read and write values in forward movement.
Bidirectional iterators: These can Read and write values with forward and backward movement and can be incremented, decremented.
random_access_iterator: Can read and write values randomly.

Download C++ Containers Interview Questions And Answers PDF

Previous QuestionNext Question
What are the C++ standardized container classes?Do you know what is a container class? What are the types of container classes?