Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by throw324523

3 hours ago

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

0 comments

throw324523

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities