Everything in C is undefined behavior

· · 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.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →
BLOG POST FEATURED ON

Add this plugin to your blog