Question PRG-CPP-0017
HardWhat is the output of this program?
#include <iostream>
#include <vector>
#include <utility>
using namespace std;
int main() {
vector<int> v = {1, 2, 3};
vector<int> w = move(v);
cout << !w.empty() << " " << !v.empty();
return 0;
}
- A.
1 1
- B.
0 0
- C.
Sign up free to see the answer and a step-by-step explanation.