Hey everyone,
I haven't programmed in quite some time and was trying to get back into it. So I wrote a small tester program that's already giving me an issue:
When I debug this, arr has 4 added to it (correct) and *arr equals the next element up (correct), but I'm getting an assertion error. Any insight into this crazy stuff?Code:int* arr = new int[10]; for (int i = 0; i < 10; ++i) arr[i] = i * 2; for (int i = 0; i < 10; ++i) cout << arr[i] << endl; arr++; delete [] arr;
Thanks a lot!