Undefined behavior

Applies to: cpp, c

Undefined behavior means the language standard gives no rules for what happens. The program may appear to work, crash, or do anything.

int a[1];
// a[5] = 3;  // undefined behavior

See also: pointer, segmentation-fault