0
What is the output of the following C++ program?
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
map<string, int> m;
m["a"]++;
m["b"] += 2;
cout << m.size() << " ";
cout << m["c"] << " ";
cout << m.size();
return 0;
}- A2 0 2
- B2 1 3
- C3 0 3
- D2 0 3
Correct answer: D