Home / MCQ Bank / Computer
Computer Variables And Data Types In C Plus Plus

What will be the output of the following C++ code? #include <iostream> using namespace std; enum colour { green, red, blue, white, yellow, pink }; int main() { cout << green<< red<< blue<< white<< yellow<< pink; return 0; }

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

Related Computer Questions

The value of event_scheduler that enables checking status but not changing it at runtime is ______ In Oozie, what does the term "end" represent in a workflow action? Which keyword is used to explicitly specify that a method cannot be overridden in a subclass? The list of coded instructions is called What will be the output of the following C++ code? #include <iostream> #include <Valarray> using namespace std; int main() { Valarray<int> varr = { 1, 2, 3, 4, 5 }; for (int &x: varr) cout << x << " "; cout<<endl; varr = varr.shift(-3); for (int &x: varr) cout << x << " "; return 0; }