Vidyalelo
C++ Programming · Q96

Variables and Data Types in C++

Programming · C++ Programming · question 96

Q96

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

A.
012345
Answer
B.
123456
C.
compile time error
D.
runtime error

Answer: Option A

Solution

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