+ 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
7 ответов
+ 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.
+ 7
I also can't find enums in the C++ tutorial which is supposedly not user generated.
+ 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...
+ 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.
+ 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.