Vidyalelo
C++ Programming · Q435

C++ miscellaneous

Programming · C++ Programming · question 435

Q435

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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board