6
What is the output of the following program?
var s = Size.Medium;
Console.WriteLine(s);
enum Size { Small, Medium, Large }DiscussEasy
Loading subject content…
Loading practice questions…
What is the output of the following program?
var s = Size.Medium;
Console.WriteLine(s);
enum Size { Small, Medium, Large }What is the output of the following program?
Console.WriteLine((int)Level.High);
enum Level { Low, Medium = 5, High }What is the output of the following program?
Console.WriteLine(Enum.Parse<Day>("Wed") == Day.Wed);
enum Day { Mon, Tue, Wed }