Detecting what am I pointing at
<p>Is there a way to detect if objects pointed by p and d are of different types? (p points to int and d points to array of ints):  </p>

<pre><code>int* p = new int();
int* d = new int[20];  
</code></pre>
