By the way I knwo that the pointer will store the address of the first element of the array when we say:
So if we used this:Code:int *p = new int[100];
it will only deallocate the first element so what will happen to the rest?Code:delete p;
By the way I knwo that the pointer will store the address of the first element of the array when we say:
So if we used this:Code:int *p = new int[100];
it will only deallocate the first element so what will happen to the rest?Code:delete p;