Question: Look at the following declaration: Enum Color { RED, ORANGE, GREEN, BLUE } a. What is the name of the data type declared by this
Look at the following declaration:
Enum Color { RED, ORANGE, GREEN, BLUE }
a. What is the name of the data type declared by this statement?
b. What are the enum constants for this type?
c. Write a statement that defines a variable of this type and initializes it with a valid value.
Step by Step Solution
3.39 Rating (165 Votes )
There are 3 Steps involved in it
Enum named Color has been declared as enum Color RED BLUE GREEN 1 Name of Data Type The Enum in Ja... View full answer
Get step-by-step solutions from verified subject matter experts
