enum is a short name for enumerated. The enumerated data type is used to declare named integer constants. The
general form of the enum data type declaration is
enum tag_name {enumeration_list} variable_list;
Here tag_name is the name of the enumeration. variable_list gives a list of variable names that are of the enum data
type. Both tag_name and variable_list are optional. enumeration_list contains defined enumerated names that are used
to represent integer constants. Names represented by variable_list or enumeration_list are separated by commas.
Friday, October 16, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment