✅ 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;}