Q756
What will be the output of the following C++ code? #include #include using namespace std; int main () multimap mymultimap; mymultimap.insert(make_pair('y', 202)); mymultimap.insert(make_pair('y', 252)); pair highest = *mymultimap.rbegin(); multimap :: iterator it = mymultimap.begin(); do cout " << (*it).second << ' '; while ( mymultimap.value_comp()(*it++, highest) ); return 0;
A.
y => 202
AnswerB.
y => 252
C.
y => 202 & y => 252
D.
y => 205
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board