-
What is the output of this program?
#include <iostream>
#include <vector>
using namespace std;
int main ()
{
vectorv;
v.push_back(false);
v.flip();
cout << boolalpha;
for (unsigned k = 0; k < v.size(); k++)
cout << v.at(k);
return 0;
}
-
- false
- True
- Compilation Error
- Runtime Error
- None of these
Correct Option: B
In this program, We are flipping the vector values by using flip function.