-
What is the output of this program?
#include <iostream>
#include <map>
using namespace std;
int main ()
{
multimap<char, int> MultimapData;
MultimapData.insert(make_pair('P', 150));
MultimapData.insert(make_pair('Q', 250));
MultimapData.insert(make_pair('Q', 300));
MultimapData.insert(make_pair('R', 450));
cout << MultimapData.size() << '\n';
return 0;
}
-
- 150
- 250
- 300
- 450
- 4
Correct Option: E
In this program, We are counting the number of elements in the map.