Ask your own question, for FREE!
Computer Science 24 Online
OpenStudy (anonymous):

could some one help me understadn wt exactly is a enum ?

OpenStudy (rsmith6559):

enum is the keyword for enumerations. An enum is a declaration of named constants with (default) values starting at 0 and increasing. The default values can be overridden by assigning a value to the name. Here are a couple of enums from one of my assignments: // enumerate these to make the code read better enum { X, Y }; enum { A, B, C }; X & A would be 0, Y & B would be 1 and C would be 2.

OpenStudy (anonymous):

In C/C++, enum is a compound data type that you can use to ensure that in some places of your code there will be possibility to use only earlier defined set of value names; this allows to improve readability (using names instead of numbers) as well as code control.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!