+ 4

What is enum exactly???

can't figure out the difference between enum in C and enum in C++

28th Oct 2016, 8:46 PM
Shruti Singh
Shruti Singh - avatar
3 odpowiedzi
+ 5
enumerate...
9th Feb 2018, 7:16 PM
sarvesh hardikar
sarvesh hardikar - avatar
+ 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.
29th Oct 2016, 6:51 AM
Stefan
Stefan - avatar
+ 1
whatever the case with the enums much like an integer will always represent the first number as zero good luck with that
18th Feb 2018, 12:38 AM
_Jacknife_
_Jacknife_ - avatar