How to delete a pointer for an object? : <p>I've searched for this but didn't find a similar topic.</p>

<p>If I have an object class, for example <code>class Object { ... };</code> , and I have this pointer for it: <code>Object* p = new Object();</code></p>

<p>I was wondering what is the correct way to delete this pointer, is it this:</p>

<p><code>delete (Object*) p;</code></p>

<p>Or this:</p>

<p><code>delete[] p;</code></p>

<p>I can't tell which one is the correct, I would be happy if someone could tell me what's right.
Thank you &lt;3</p>
