+ 4
What is enum exactly???
can't figure out the difference between enum in C and enum in C++
3 Réponses
+ 5
enumerate...
+ 1
An enums is a custom data type that enumerates a list of names giving them integer values.
Example :
enum Color {
RED,
GREEN
};
The enum Color lists a set of colors. Each color is given an integer value internally (starting from 0), if you don't assign it explicitly.
You can use the mnemonics "RED" and "GREEN" from after the definition in your code.
Other enumerations might list gender, available products etc.
+ 1
whatever the case with the enums much like an integer will always represent the first number as zero good luck with that