![]() ![]() Enumeration is a variable with a defined set of elements. For instance, if a programmer wished to create a variable or varying value in a program, say the days of the week, she would type "enum" followed by "Days", then type the days of the week in between two curly brackets or braces. When a type is enumerated in a program, the term or keyword "enum" is typed into the program, followed by a value. ![]() ![]() Enumeration type is used by a bus enumerator to define a set of named constants that can be assigned to a variable in the program. ![]()
0 Comments
Leave a Reply. |