Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
34 votes
9 answers
4k views

Why would a language have a concept of undefined behavior instead of raising an error?

Certain constructs or conditions in programming just are not allowed. Languages such as Java or Swift handle these by raising an error when encountered. C and C++ on the other hand say 'Anything could ...
CPlus's user avatar
  • 9,143