Question PRG-CPP-0069
HardWhat is the output of this program?
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v(3, 7);
v.resize(5);
v.push_back(1);
cout << v.size() << v[4] << v[0];
return 0;
}
- A.
507
- B.
6 07
- C.
Sign up free to see the answer and a step-by-step explanation.