Everything in C is undefined behavior

466 · · May 19, 2026, 2:35 p.m.
Summary
The post discusses the pervasive nature of undefined behavior (UB) in C and C++ programming languages. The author argues that it is nearly impossible to write correct code in these languages due to the existence of numerous situations where UB can occur, highlighting various examples that illustrate the subtlety and complexity of these issues. They also suggest that reliance on modern tools like LLMs is essential for identifying and fixing UB in code. The discussion emphasizes the need for changes in how programmers approach writing C and C++ in a modern context.