Home » C++ Programming » Questions and Answers » Question
  1. Subsequent elements are moved in terms of _____ when an element in inserted in vector?
    1. function
    2. Assignment Operator
    3. Copy constructor
    4. Both assignment operator and copy constructor
    5. None of these
Correct Option: D

The vector maintains a certain order of its elements, so that when a new element is inserted at the beginning or in the middle of the vector, Subsequent elements are moved backwards in terms of their assignment operator or copy constructor.



Your comments will be displayed only after manual approval.