A dangling pointer is indeterminate

Graphic: Technical article

  Back to news A case of undefined behaviour in C language This blog post illustrates a lesser-known case of C undefined behavior, that is, using the value of a dangling pointer in a way that most developers consider harmless, such as pointer arithmetics or as operand of a comparison. Anyone who has ever had […]