logo

Crowdly

Browser

Add to Chrome

Mit ír ki? #include <stdio.h>  enum Days{red, blue, green};  char* getCol...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Mit ír ki?

#include <stdio.h>

 enum Days{red, blue,

green};

 char* getColor(enumDays color)

{switch(color) {

 case 0:return

"Red";

 case 1:return

"Blue";

 case 2:return

"Green";

}

}

 int main() {

 enum Days color= red;

 printf("The

color is %s.", getColor(color));   

return0;}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ms.sapientia.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome