What will get removed if i remove a pointer in c++ <p>If I remove a pointer to an object, what will be removed? Only the pointer or also the object which the pointer points to? For example:</p> <p>Assume I have a class with a variable</p> <pre><code>int *root </code></pre> <p>If I do the following in a method of that class</p> <pre><code>int *current = root; delete current; </code></pre> <p>Will root also be deleted or only the pointer current?</p>