View Mode
Q: 4
What will be output of the program when you attempt to compile and run the following code? #include #include #include #include using namespace std; int main(){ int second[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 }; string first[] = {"three", "four", "two", "one", "six","five", "seven", "nine","eight","zero"}; multimap m; for(int i=0; i<10; i++) { m.insert(pair(second[i],first[i])); } m[0]="ten"; m.insert(pair(1,"eleven")); for(multimap::iterator i=m.begin();i!= m.end(); i++) { cout<second<<" "; } return 0; }
Options
Question 4 of 30

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail 10% DISCOUNT on YOUR PURCHASE