Q688
What will be the output of the following C++ code? #include #include using namespace std; int main() vector v; for (int i = 1; i <= 5; i++) v.push_back(i); int *pos = v.data(); cout<<*(pos + 3); return 0;
A.
5
B.
1
C.
4
AnswerD.
3
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board