LogiQuest
Back to STL
13

What will be the output of the program?

#include <iostream>
using namespace std;
#include <map>
int main() {
    map<int, int> m = {{3, 30}, {1, 10}, {2, 20}};
    cout << m.begin()->second << endl;
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.