Home » C# Programming » Enumerations

Which of the following statements is correct about the C#.NET code snippet given below? int a = 10; int b = 20; int c = 30; enum color: byte { red = a, green = b, blue = c }

Correct Answer: Variables cannot be assigned to enum elements.

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion