LogiQuest
Back to Structures and Enumerations
10

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 }
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.