Skip to main content
๐Ÿ”ฎ 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 the output?

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep