Get the latest tech news

The difference between undefined behavior and ill-formed C++ programs


August 2, 2024 Aug 2, 2024 08/2/24 Raymond Chen They are two kinds of undefined-ness, one for runtime and one for compile-time..

August 2, 2024 Aug 2, 2024 08/2/24 Raymond Chen They are two kinds of undefined-ness, one for runtime and one for compile-time.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of difference

difference

Photo of C++

C++

Photo of undefined behavior

undefined behavior

Related news:

News photo

Don't blindly prefer `emplace_back` to `push_back`

News photo

Choose wisely: the right solar monitoring software makes all the difference

News photo

Safer code in C++ with lifetime bounds