1.

What is the output of this program?
#include <iostream>
#include <vector>
using namespace std;
int main ()
{
vector<int> VectorData;
VectorData.push_back(45);
VectorData.push_back(55);
VectorData.front() += VectorData.back();
cout << VectorData.front() << ' n';
return 0;
}

A. 55
B. 45
C. 100
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs