#include <stdio.h> #include <stdlib.h> #include <string.h> enum Color { RED = 4, BLUE, YELLOW }; typedef enum Color Color; int main(int argc, char* argv[]) { Color c = YELLOW; printf("%d\n", c); return 0; }
If you find our content useful and has helped you in the past, you can help the CodeVault community grow by becoming a CodeVault supporter