Select the correct option to test your answer:
Computer
Plus Plus Miscellaneous
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> #include <map> using namespace std; int main () { try { map<char, int> mymap; map<char, int> :: iterator it; mymap['a'] = 50; mymap['b'] = 100; mymap['c'] = 150; mymap['d'] = 200; it = mymap.find('b'); mymap.erase (it); mymap.erase (mymap.find('d')); cout << mymap.find('a') -> second << '\n'; } catch (...) { cout << "Unknown exception: " << endl; } return 0; }
More Computer Questions
An identifying label on the first record of magnetic tape is
How can you create a new SQLite database using the sqlite3 module?
Which among the following are the correct definitions for "NULL" in Mysql?
What is the worst case efficiency for a path compression algorithm?
What is the result of reversing a singly linked list?