title: C++ Check if array created with 'new'
body: <p>In C++ the <code>delete[]</code> is supposed to be used with arrays created by <code>new</code>. You can pass arrays into functions like this: <code>void method_with_array(int* array)</code>. How can you tell if an array created this way was created with <code>new</code>, so you can delete it properly.</p>