Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Which of the following will print the code below? #include <iostream> #include <vector> using namespace std; int main() { vector<int> vec; for(int i=1 ; i<5 ; ++i) { vec.push_back(i*i); } vec.erase(vec.begin()); vec.erase(vec.begin() + 3); size_t length = vec.size(); cout << length << endl; for(int i=0 ; i<length ; ++i) { cout << vec[i] << ' '; } return 0; }

4 9
Nothing - segmentation fault
1 4 46
1 4 9 16 25
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon