Page 1 of 1

What type of Iterator i1 is in the following C++ code snipet?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
================ code ================
vector<int>::iterator i1;
for (i1=v1.begin();i1!=v1.end();++i1)
*i1 = 1;
======================================
a) Input Iterator
b) Output Iterator
c) Both Input and Output Iterator
d) Neither Input nor Output Iterator