B
bintom
Why is the [ ] while freeing dynamically allocated memory with the
delete operator before the pointer name and not after, as when using
the new operator ?
type* ptrName; // --> declaration of pointer
ptrName = new type [SIZE];
delete [] ptrName;
delete operator before the pointer name and not after, as when using
the new operator ?
type* ptrName; // --> declaration of pointer
ptrName = new type [SIZE];
delete [] ptrName;