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
List the fundamental oop concepts?
How to open a new form on button click in Windows forms?
What is the use of regex in c#?
Is c# 8 released?
What are the properties of c#?
What is use of singleton class in c#?
How objects are stored in memory?
What is the difference between yield and return?
What are the variables in c#?
What are fields in c#?
Is array immutable in c#?
What is difference between array and collection?
What is the advantage of extension method in c#?
Is null empty or whitespace c#?
What are access modifiers used for?