What is the output of the program:
#include <bits/stdc++.h> using namespace std; int main() { unordered_map<int, int> m = {{1, 10}, {2, 20}}; m.clear(); cout << m.size() << " " << m[1]; }
0 garbage value
0 0
0 1
Error
This question is part of this quiz :
C++ Unordered Map