Uninitialized Pointer Error
/* * This program will blow up on most systems, though it might work. */ #include <iostream> using namespace std; int main() { int *arr; int m; for(m = 0; m < 10; m++) arr[m] = 2*m - 1; for(m = 0; m < 10; m++) cout << m << endl; }

Pointers can be subscripted like arrays, but there must be an array there. The results of running this code will vary on different systems.