Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#enum basicsSingle-choice MCQ

Why is the [Flags] attribute and powers-of-two values used in an enum like this?

[Flags] enum Access { None = 0, Read = 1, Write = 2, Execute = 4 }