what Does `delete ptr' delete in c++?

It delete The pointed-to-data.

it delete The pointed-to-data.

When you read delete p', say to yourselfdelete the thing pointed to by p’. One could argue that the keyword is misleading, but the same abuse of English occurs when free'ing the memory pointed to by a ptr in C: free(ptr); /* why notfree_the_stuff_pointed_to_by§’ ?? */