Q. Which of the following is the correct way to define an enumeration in C++?
β
Correct Answer: (A)
enum MyEnum { RED, GREEN, BLUE };
Explanation: The correct way to define an enumeration is 'enum MyEnum { RED, GREEN, BLUE };'.