Question
Choose the correct output for given set of code?
enum per {   a,    b,    c,    d,  } per.a = 10; Console.writeline(per.b);
enum per {   a,    b,    c,    d,  } per.a = 10; Console.writeline(per.b);
Answer: Option D
Was this answer helpful ?
It will report an error since enum element cannot be assigned a value outside the enum declaration.
Was this answer helpful ?
Submit Solution