Skip to content
0MESubscribe

undefined behavior

A situation where software code produces unpredictable results because the programming language does not define how to handle it.

In languages like C and C++, undefined behavior can cause crashes, incorrect data outputs, or severe security holes. Compilers assume undefined behavior never happens, which can lead to unexpected optimizations.

Stories using this word