Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C reason, for an enum type variable, if you input any int data, is it the identifier of the enum variable?
C reason, for an enum type variable, if you input any int data, is it the identifier of the enum variable?

enum color

{red=1,blue,yellow}color;

Here red=1,blue=2,yellow=3, enum is None The numerical type of the symbol, starting from 0 (can be understood as an integer containing only positive numbers containing 0)