> Again, that is what would be sensible from a C++ perspective, I don't know if C differs here.
In C it is not UB for an enum to have an integer value that does not correspond to any listed enumeration constants.