a) v.size()
b) v.capacity()
c) v.max_size()
d) v.no_of_elements()
1 thought on “Which function is used to get the total capacity of a vector?”
Leave a Comment
You must be logged in to post a comment.
a) v.size()
b) v.capacity()
c) v.max_size()
d) v.no_of_elements()
You must be logged in to post a comment.
b
Explanation: capacity() function is used to get the total number of elements that can be stored at present in the vector.