What is the output of the program:
#include <bits/stdc++.h>
using namespace std;
int main()
{
unordered_map<int, string> myMap;
myMap[1] = "one";
myMap[2] = "two";
cout << myMap[3] << endl;
return 0;
}
An empty string
"two"
undefined behavior
Error
This question is part of this quiz :
C++ Unordered Map