I believe that in C enumerations, mostly int with personality. (This contrasts with C ++, where they are full-fledged types.) Thus, assigning different enum effectively still works only with int s, so it is legal. However, I am not saying this is recommended :)
dappawit
source share