-
Subsequent elements are moved in terms of _____ when an element in inserted in vector?
-
- function
- Assignment Operator
- Copy constructor
- Both assignment operator and copy constructor
- 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.