What is the difference between delete a pointer and set the pointer as NULL? : <p>Suppose I have a pointer to MyClass:</p>

<pre><code>MyClass *myPointer = new MyClass();
</code></pre>

<p>What is the difference between <code>delete myPointer;</code> and <code>myPointer = NULL;</code>?</p>

<p>Thanks</p>
