Q772
What will be the output of the following C++ code? #include #include using namespace std; int main() vector v; for (int i = 1; i :: const_iterator i; for (i = v.begin(); i != v.end(); ++i) cout << *i << " "; cout<<endl; return 0;
A.
1 2 3 4 5
AnswerB.
1 3 5
C.
1 4 5
D.
Error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board