InterviewSolution
Saved Bookmarks
| 1. |
What does the size of the vector refers to in c++?(a) Size of vector(b) Type of vector(c) Number of elements(d) Name of vectorI got this question during an interview.Enquiry is from Sequences and Containers topic in section Algorithms, Objects & Iterators in C++ of C++ |
|
Answer» CORRECT answer is (c) Number of ELEMENTS Easiest EXPLANATION - In vectors, by size we mean the number of elements in that vector array. |
|