Subsequent elements are moved in terms of _____ when an element in inserted in vector?

a) Assignment Operator
b) Copy constructor
c) Both assignment operator and copy constructor
d) destructor

1 thought on “Subsequent elements are moved in terms of _____ when an element in inserted in vector?”

  1. c
    Explanation: 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.

Leave a Comment