CS106L

Iterators and Pointers

0 points

Attendancefor this activity has closed. Sign in to be counted — nothing is recorded while you are signed out, and the activity itself works either way.

Iterator Positions and end()

Trace the iterator, then choose what happens at the final line.

1std::set<int> values;2values.insert(21);3values.insert(7);4values.insert(14);5 6auto it = values.begin();7++it;8++it;9++it;10 11std::cout << *it;

What happens when this code tries to print *it?

0 of 1 done