answersLogoWhite

0


Best Answer

/* Use of enum*/ #include void main() { enum class {first,second,pass,fail}; enum class result; clrscr(); result=second; printf("Grade=%d",result); getch(); }

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

6mo ago

Enumerated data types can be declared using the enum keyword followed by the name of the enumeration and a list of possible values enclosed in curly braces. Each value is separated by a comma. For example, enum Color { Red, Green, Blue } declares an enumeration named Color with three possible values: Red, Green, and Blue.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do we declare enmurated data type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you store non primitive data type in the array list?

Yes you can store non primitive data type variables in an array. String is a non primitive data type. You can declare a string array as: String a[]=new String[10];


Can Array List in java hold different data types?

No, we cant hold different data types in an Array. But using Array List we can hold any data type as a Object. But you need iterate that values as a Object and again you need to convert those values into the different data types accordingly.


Where the local variables will be stored?

When you declare a variable and it's data type in a function, it is stored in the specific space for memory allocated by the variable type identifier known as the "stack."


How do i declare a Floating Point Format Data Type That Can Hold Up To 110100000 In Visual Basic?

* it means 1 x 10^ 100000


How could you extend the range of value data represent?

We extend the range of values by changing the data types. Such as if a variable declare by int data type It's range between -32768 to 32766. We can extend it's range by change the type long or other. If we change long then its range between -2147483468 to 2147483467.


How you can establish the properties in Visual Basic?

To establish a varibale in visual basic. You can write Dim xxx as 'data type' Public xxx as 'data type' Public allows a variable to be tranfered across forms. If you also use vb 2008.net, You have to declare ALL variables


Why should you declare variables?

Declaring of a variable in Java refers to creating a variable of a particular data type. Example: int x = 10; Here we are declaring an integer variable X and initializing it to a value of 10


What is the size of void data type?

Data-type void has some special features:- it doesn't have values- it doesn't have size- you cannot declare variables with it- void *pointers cannot be dereferenced


What is long in visual basic?

Long is a kind of data type that can contain any number from 9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. This means that if you declare a variable or array as a "long", then it will be able to contain these numbers.


What is the opposite of declare?

I'm not sure whta the opposite of declare is, but if you go to thesuarus.com, and type in declare, it will pop up for you. I'm not sure whta the opposite of declare is, but if you go to thesuarus.com, and type in declare, it will pop up for you.


What data type is age?

integer data type


What is a declaring variable?

Variable declaration is when you declare a variable. For example: String foo; The data type is String and now I can modify foo and don't need to type String again. It can be an instance variable or a local variable.