Answer Posted / pijush
The enum keyword is used to declare an enumeration, a
distinct type consisting of a set of named constants called
the enumerator list. Every enumeration type has an
underlying type, which can be any integral type except
char. The default underlying type of the enumeration
elements is int. By default, the first enumerator has the
value 0, and the value of each successive enumerator is
increased by 1. For example:
Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
What is form feed and carriage return?
Explain About friend and Protected friend
What are data types in C#?
Is c# substring zero based?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
Which is better javascript or c#?
What is default parameter in c#?
What is serialization and deserialization in c# with example?
What is form feed in c#?
Are structs value types or reference types?
What are access modifiers used for?
What does a constructor do c#?
What's the difference between system.string and system.text.stringbuilder classes?
What is private in c#?
What is default constructor in c#?