C++ How to delete an array with an int ptr pointing to it : Hi so I have something like:

    int *p=new int[3];
    *p=1;
    p++;
    *p=2;
    delete [] p;
Is this the correct way to delete the array that p is pointing to?
    