🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Iterators in C++: all 10 questions

Quiz: Iterators in C++ · Question 1 of 10

What does v.end() point to?

What does v.end() point to?

  1. A.The last element of v
  2. B.One position past the last element; it must not be dereferenced
  3. C.The first element of v
  4. D.nullptr
Answer & explanation

Correct answer: One position past the last element; it must not be dereferenced

end() is a stop marker for the half-open range [begin, end).

Can you get the rest right without peeking?

Take the timed Quiz: Iterators in C++ quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →