C++ MQCs with Explanation ( STANDARD TEMPLATE LIBRARY)

Which one of the following is TRUE?

  1. Algorithms can be used only on STL containers
  2. An iterator can always move forward or backward through a container
  3. The back( ) member function removes the element at the back end of the container
  4. The member function end( ) returns a reference to the last element in the container



Answer: 
Option b: An iterator can always move forward or backward through a container

Explanation Here

Post a Comment

0 Comments