Answer Posted / nishesh
ENUM is a user defined data type. and it is declared to hold constant values for a set of data
example
enum days {sun,mon,tue,wed,thur,fri,sat}
will assign values like this
sun=0
mon=1
tue=2
and so on
if we want to use that series then we can do like this
int First_day=(int)days.sun;
it will give
First_day = 0
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is c# pass by reference?
What are All kind of access specifiers for a class and for methods
What is the signature of a method?
What is xor operator in c#?
What is jagged array?
What is the difference between the debug class and trace class? Documentation looks the same.
Why is it not a good idea to use empty destructors?
How do I create a multilanguage, single-file assembly?
What are the benefits of using generics?
Does google use c#?
Is predicate a functional interface?
What is a c# delegate?
List the different stages of a thread?
Why do we use virtual methods in c#?
Give some examples for built in datatypes in c#?