1.

What is the output of this program?
#include <iostream>
#include <vector>
using namespace std;
int main ()
{
vector v;
v.push_back(false);
v.flip();
cout << boolalpha;
for (unsigned k = 0; k < v.size(); k++)
cout << v.at(k);
return 0;
}

A. false
B. True
C. Compilation Error
D. Runtime Error
E. None of these
Answer» C. Compilation Error


Discussion

No Comment Found

Related MCQs