View Mode
Q: 11
What happens when you attempt to compile and run the following code? #include #include int main () { std::vectorv1; for(int i = 10; i>0; i??) { v1.push_back(i); } std::vector::iterator it = v1.begin(); int sum = 0; while(it != v1.end()) { sum+=it++; } std::cout<<*v1.erase(v1.begin(),v1.end()?3)<<" "<<sum <<std::endl; return 0; }
Options
Question 11 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