What is ENUM?

Answer Posted / jagwinder singh

An Enumeration is a set of named integer constants. The keyword enum declares an enumerated type.

Here is example:

enum Apple { Jonathan,Goldendel, reddel,winesap}

by default jonathan has value 0,goldendel=1 and so on

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?

458


What is the purpose of a console table?

475


What is the advantage of constructor?

474


What is int64 in c#?

497


What is a protected class c#?

488






Why generics are used in c#?

489


What are the advantages of properties in c#?

554


How does bitwise xor work?

469


How does substring work in c#?

478


Explain the difference between and xml documentation tag?

498


What are types in c#?

494


What is meant by generics in c#?

498


What is field in c#?

464


What is as keyword in c#?

574


What is datagrid c#?

472