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
Explain partial class in c#?
Name the connections does microsoft sql server support?
What do you mean by streamreader/streamwriter class in c#?
What is boolean conditions in c#?
Why cannot you specify the accessibility modifier for methods inside the interface?
Why References are stored on heap and variables on stack?
Is lazy thread safe c#?
What's the difference between abstraction and encapsulation?
How do you determine whether a string represents a numeric value?
What is type checking in c#?
What is a console file?
What is difference between il and dll ?
What does int32 mean in c#?
Why do we need indexer in c#?
How is the syntax written to inherit from a class in C#?Give an example ?