Which of the following(s) can be used to access the last element of a vector v?
(a) v.end()
(b) v.cend()
(c) both v.end() and v.cend()
(d) vectors do not have a function to access the last element
The question was posed to me during an internship interview.
I want to ask this question from seq_con Vector Class topic in portion Class Hierarchies, Library & Containers of C++