Why is this working:
int* a = new int(5); int* pA = a; delete pA;
But this one isn't:
int a = 5; int* pA = &a; delete pA;
I may be wrong, but is it because I'm trying to delete a pointer (is it even a pointer I'm deleting?) allocated in reserved memory or something?