Suppose we have the following definition:

vector vec;
// use push_back to put 10 values into vec here.
vector::iterator itr1, itr2,itr3;
itr1 = vec.begin();
itr2 = vec.begin() + 5;
itr3 = vec.end();
For this iterator which of the following is incorrect?
A. *iter1
B. itr2[3]
C. itr3 + 3
D. itr2 - 5

C. itr3 + 3

Computer Science & Information Technology

You might also like to view...

When shopping for music at an online music store, the customer is accessing ________ that identify files according to the recording artist, music type, song title, album title or other data

A) databases B) presentations C) documents D) spreadsheets

Computer Science & Information Technology

Rewrite the junk script of this chapter to be menu driven. Use the select command.

What will be an ideal response?

Computer Science & Information Technology