Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

What will be the output of the following C++ code? #include <iostream> #include <vector> using namespace std; int main () { vector<bool> mask; mask.push_back(true); mask.flip(); cout << boolalpha; for (unsigned i = 0; i < mask.size(); i++) cout << mask.at(i); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • false

Related Computer Questions

In C#, what is the method called automatically when an object of a class is created? The first CSS specification to become an official W3C Recommendation is ___________ Which protocol is commonly used for transmitting web pages over the internet? Safari is a web browsing software developed by: What is the primary function of the Hadoop Secondary NameNode in a Hadoop cluster?