typedef enum xxx { A, B, C } mytypex; int main() { mytypex x = A; enum xxx y = B; return 0; }