title: Can you declare a pointer on the heap?
body: <p>This is the method for creating a variable on the heap in C++:</p>
  
  <pre><code>T *ptr = new T;
  </code></pre>
  
  <p>ptr refers to a pointer to the new T, obviously. My question is, can you do this:</p>
  
  <pre><code>T *ptr = new T*;
  </code></pre>
  
  <p>That seems like it could lead to some very, very dangerous code. Does anyone know if this is possible/how to use it properly?</p>