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. None of the mentioned
Answer:A
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. None of the mentioned
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.