K
Keith Thompson
In the real world (outside of academia and/or newsgroups), anything that
works is "right" (this is a logical extension of "anything that doesn't
work is wrong"). Trust me. I know of what I speak.
It depends on what you mean by "work".
In the real world, many things "work" well enough to pass testing,
only to break, probably at the most inconvenient possible time, in
actual use.
In the case of C code, the standard is a contract between the
programmer and the implementation. If the programmer writes code that
happens to "work", but that violates the contract (e.g., by invoking
undefined behavior), the implementation, or a future one, is under no
obligation to make it continue to work.