Examveda

What will be the output of the following C# code?
 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

Related Questions on Classes and Objects in C Sharp