English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-12-18 23:56:09 · 6 answers · asked by Saravanan R 1 in Computers & Internet Programming & Design

6 answers

An enumeration is a data type consisting of a set of named values that represent integral constants, known as enumeration constants. An enumeration also referred to as an enumerated type because you must list (enumerate) each of the values in creating a name for each of them. In addition to providing a way of defining and grouping sets of integral constants, enumerations are useful for variables that have a small number of possible values.
Another Definition:
2. An enumeration is a user-defined type consisting of a set of named constants called enumerators.

For more Information try these pages:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/enumdec.htm
http://msdn2.microsoft.com/en-us/library/2dzy4k6e.aspx

2006-12-19 00:57:45 · answer #1 · answered by art64 1 · 1 0

An enumeration in programming is, as the name explains, a set of numbers that can be called by referring to it as a name. The programmer can refer to a number by using a simple name. However, he cannot pick a number that is not defined. A boolean, a.k.a. a bool, is also an enumeration containing two possibilities: true (1) & false (0).

Example of an enumeration in C#:

enum boolean
{
false = 0,
true = 1
}

The programmer can now call the value 0 by typing "false".
An example:

boolean value = boolean.false.

The value variable will contain 0.

Enumerations are very handy for defining options and statusses, such as

enum state
{
open = 0,
close = 1,
connecting = 2,
connected = 3,
disconnecting = 4,
disconnected = 5
}

2006-12-19 08:20:14 · answer #2 · answered by stevevil0 3 · 1 0

In mathematics and theoretical computer science, an enumeration of a set is a procedure for listing all members of the set in some definite sequence. Formally, an enumeration of a set S is a mapping from (the natural numbers) to S which is surjective (i.e., every element of S is the image of at least one natural

2006-12-22 21:30:01 · answer #3 · answered by charudatta d 1 · 0 0

What Is Enumeration

2016-10-02 21:29:22 · answer #4 · answered by brinton 4 · 0 0

This Site Might Help You.

RE:
what is enumeration?

2015-08-18 16:50:56 · answer #5 · answered by Anonymous · 0 0

give a formal definition of an enumerator

2013-12-05 03:00:49 · answer #6 · answered by Anonymous · 0 0

Counting.

2006-12-19 00:04:11 · answer #7 · answered by Anonymous · 0 0

a data type consisting of a set of named values that represent integers ,pointers and doubles and all type of varables defined by compiler but not defined by user.
mainly used in C++ programming

2006-12-19 01:28:44 · answer #8 · answered by na k 1 · 0 0

i think it means to be "Written Down" !!

2006-12-19 00:04:30 · answer #9 · answered by Dr Surabhi :) 3 · 0 0

organization by numeric order. 1,2,3..........

2006-12-19 00:05:43 · answer #10 · answered by jimmiv 4 · 0 0

fedest.com, questions and answers