Vidyalelo
C++ Programming · Q168

C++ miscellaneous

Programming · C++ Programming · question 168

Q168

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

A.
false
Answer
B.
true
C.
false & true
D.
alpha

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board