Re:Everything in C is undefined behavior
by kzrdude on Wednesday May 20, 2026 @06:29AM
(#48205585)
My go-to example of "UB is everywhere" is this one:
Which is UB for certain values of x.
[ Parent
| on HN ]
Re:Everything in C is undefined behavior
by CodeArtisan on Wednesday May 20, 2026 @07:03AM
(#48205835)
C23 removed the whole stuff about indeterminate value and trap representation. Underflow/overflow being silent or not is implementation defined.
Re:Everything in C is undefined behavior
by saagarjha on Wednesday May 20, 2026 @07:19AM
(#48205958)
Signed overflow is just undefined.
TBF that is the same as saying "signed overflow is UB".