Enumeration is a user-defined type that value is restricted to one of several explicitly named constants(enumerators). enum is the key word that is use for this. In this code first we declare global enum declaration, in which we have four values and then in main program we can make an instance of enum and then use it.
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment