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

Is c# pass by reference?

943


What are All kind of access specifiers for a class and for methods

1123


What is the signature of a method?

969


What is xor operator in c#?

1004


What is jagged array?

981


What is the difference between the debug class and trace class? Documentation looks the same.

1278


Why is it not a good idea to use empty destructors?

1095


How do I create a multilanguage, single-file assembly?

971


What are the benefits of using generics?

1063


Does google use c#?

969


Is predicate a functional interface?

1012


What is a c# delegate?

1128


List the different stages of a thread?

936


Why do we use virtual methods in c#?

1001


Give some examples for built in datatypes in c#?

1021