Referencing a deleted value
Nothing prevents a pointer from referencing a deleted value.
int * p; // global pointer variable void Set () {
int i; // local variable i = 7; // give i a value p = & i; // set p to point to it } void Use () {
double d; d = 3.0; d += *p; // use the value p points to }