Why enum concept is not given in sololearn? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 12

Why enum concept is not given in sololearn?

Actually i can't find enum concept in the sololearn C language course and every time i lost my 1 point in challenge due to lack of knowledge about this concept

20th Jun 2019, 11:26 AM
bossCoder
bossCoder - avatar
5 Antworten
+ 14
Enumerations are not so important in C. Even in our University they have skipped it. But if you really want to know about enumerations :- [Definition] :- it is a user defined datatype which consists set of predefined constants. [Example] :- enum color{red; yellow; Green;}; int main(){ printf("%d",red); [Output] :- 0 [Note] :- ✓in an enumeration by default the value starts from 0. ✓in the above code the colors can even be initialised with some other value. Example:- if you initialised red=5; then yellow would be 6 and green 7 automatically.
21st Jun 2019, 1:58 AM
Manoj
Manoj - avatar
+ 7
I also can't find enums in the C++ tutorial which is supposedly not user generated.
21st Jun 2019, 1:57 AM
Sonic
Sonic - avatar
+ 6
Yes your reply is correct but my question is why sololearn doesn't add that content... As they are asking questions regarding this topic then they should add...
20th Jun 2019, 12:32 PM
bossCoder
bossCoder - avatar
+ 3
The c course was originally user generated. Nobody added a lesson on enum. All the sololearn courses are just introductions to the language, if you want to be good at the language you will have to use other references.
20th Jun 2019, 8:26 PM
Jared Bird
Jared Bird - avatar
+ 1
Sonic c++ is a big language, there is probably 10 times the amount of stuff missing from the c++ tutorial. You can really only count the tutorials a starting point.
21st Jun 2019, 2:41 AM
Jared Bird
Jared Bird - avatar