Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is ENUM?

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


Please Help Members By Posting Answers For Below Questions

Explain partial class in c#?

916


Name the connections does microsoft sql server support?

930


What do you mean by streamreader/streamwriter class in c#?

955


What is boolean conditions in c#?

969


Why cannot you specify the accessibility modifier for methods inside the interface?

922


Why References are stored on heap and variables on stack?

945


Is lazy thread safe c#?

881


What's the difference between abstraction and encapsulation?

903


How do you determine whether a string represents a numeric value?

931


What is type checking in c#?

920


What is a console file?

957


What is difference between il and dll ?

1013


What does int32 mean in c#?

904


Why do we need indexer in c#?

1008


How is the syntax written to inherit from a class in C#?Give an example ?

1060