🔮 Output PredictionC+ C++ Medium⚡+20 XP
Map Insertion
What is printed?
C++
map<string, int> m; m["a"] = 1; m["b"] = 2; m["a"] = 3; cout << m["a"] << " " << m.size();
What is printed?
map<string, int> m; m["a"] = 1; m["b"] = 2; m["a"] = 3; cout << m["a"] << " " << m.size();