Solved

Suppose We Have the Following Definition

Question 39

Multiple Choice

Suppose we have the following definition:
Vector<int> vec;
// use push_back to put 10 values into vec here.
Vector<int>::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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents