Examveda

What will be the output of the following C# code?
enum letters
{
    a,
    b,
    c
} 
letters l;
l = letters.a;
Console.writeline(l);

A. -1

B. 0

C. a

D. letters.a

Answer: Option C


Join The Discussion

Related Questions on Classes and Objects in C Sharp