logoalt Hacker News

throw324523 • today at 3:35 PM • 0 replies • view on HN

> 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.