Which function is used to get the total capacity of a vector?
(a) v.size()
(b) v.capacity()
(c) v.max_size()
(d) v.no_of_elements()
This question was addressed to me during a job interview.
This intriguing question comes from seq_con Vector Class in section Class Hierarchies, Library & Containers of C++