Page 1 of 1

Which of the following(s) can be used to access the last element of a vector v?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
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