Question PRG-CPP-0044
MediumWhat is the output of this program?
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
map<string, int> m;
cout << m["x"] << " " << m.size();
return 0;
}
- A.
1 1
- B.
0 0
- C.
Sign up free to see the answer and a step-by-step explanation.