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
What is expression tree in c#?
What is ispostback c#?
What is the use of tryparse in c#?
Explain the types of comments in c#?
Is and as in c#?
What do you mean by sealed classes and static classes?
How do you name a variable in c#?
What does string format do?
What is yield keyword?
What is asp net in c#?
Why is .net so popular?
What are interfaces in c#?
Why do we need abstraction in c#?
Is array value type in c#?
What is an assembly in .net?