================ 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
What type of Iterator i1 is in the following C++ code snipet?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What type of Iterator i1 is in the following C++ code snipet?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!