// After delete is called on a pointer, its value is, theoretically, // indeterminate. However, in many implementations, the value is simply // left unchanged. // // After a pointer is deleted, the pointer is “stale” or “dangling”. // Just because you have a pointer to the data, doesn’t mean that // you are allowed to access the data. Don’t! #include using namespace std; // Show an array of data. You have to pass the length, because C++ doesn’t // know the length of a C-style array. void show(int data[], int length) { for (int i=0; i