3 ms·
> My understanding is that C has undefined behaviour where there is no universally sensible implementation across all architectures. There are two less drastic
by Sharlin 8y ago
> My understanding is that C has undefined behaviour where there is no universally sensible implementation across all architectures.
There are two less drastic options used by the Standard for those cases.
- Unspecified behavior: behavior that must be "sane" in some sense but may differ between implementations. Vendors need not document the exact behavior.
- Implementation-defined behavior: behavior that must be sane and may differ between implementations. Vendors are required to document the behavior.