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
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
b) v.cend()
c) both v.end() and v.cend()
d) vectors do not have a function to access the last element