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

Thành Đạt

New member
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
 
Answer: 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.
 

Tìm kiếm

Back
Top