What will be the correct statement of the following C# code?
A. byte value cannot be assigned to enum elements
B. enum elements should always take successive values
C. enum must always be of int type
D. When the valid range of byte exceeds, the compiler will report an error
Code:
enum color:byte
{
yellow = 500,
green = 1000,
pink = 1300
}
B. enum elements should always take successive values
C. enum must always be of int type
D. When the valid range of byte exceeds, the compiler will report an error