Q923
What will be the output of the following C++ code? #include #include using namespace std; int main () map mymap; map :: iterator it; mymap['b'] = 100; mymap['a'] = 200; mymap['c'] = 300; for (map :: iterator it = mymap.begin(); it != mymap.end(); ++it) cout first " second << ' '; return 0;
A.
a => 200
c => 300
c => 300
B.
a => 200
b => 100
b => 100
C.
a => 200
b => 100
c => 300
Answerb => 100
c => 300
D.
a => 200
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board