11
What is the output of the following program?
Console.WriteLine(Color.Green);
enum Color { Red, Green, Blue }DiscussEasy
Loading subject content…
Loading practice questions…
What is the output of the following program?
Console.WriteLine(Color.Green);
enum Color { Red, Green, Blue }What is the output of the following program?
var p = Perm.Read | Perm.Write;
Console.WriteLine((int)p);
[Flags] enum Perm { Read = 1, Write = 2, Exec = 4 }What is the output of the following program?
var s = Size.Medium;
Console.WriteLine(s);
enum Size { Small, Medium, Large }