Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
5b ENUMERATION
1 Department of CSE
Objectives
• To understand working with enum data type
2 Department of CSE
Agenda
• Definition
• Syntax
• Examples
3 Department of CSE
Enumeration
User-defined data type consisting of integral constants
Each integral constant is given a name
Keyword enum is used to define enumerated data type
return 0;
};
Summary
• Discussed the syntax of enum with examples
• Discussed the how to use the enum datatype.
9 Department of CSE