What will be the output of the following C# 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);A. 11
B. 1
C. 2
D. compile time error
Answer: Option D

Join The Discussion