What is ENUM?

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


Please Help Members By Posting Answers For Below Questions

What is form feed and carriage return?

469


Explain About friend and Protected friend

515


What are data types in C#?

559


Is c# substring zero based?

493


Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

498






Which is better javascript or c#?

497


What is default parameter in c#?

500


What is serialization and deserialization in c# with example?

454


What is form feed in c#?

560


Are structs value types or reference types?

564


What are access modifiers used for?

584


What does a constructor do c#?

486


What's the difference between system.string and system.text.stringbuilder classes?

519


What is private in c#?

482


What is default constructor in c#?

492