title: Understanding these Pointer Statements - Diagram
body: <p>I am trying to understand the following 3 code statements involving pointers (through image diagrams). If you can explain it without images that would also work</p>
  
  <pre><code>1- myobj *ptra = new myobj();
  2- myobj *ptrb = new myobj[2]();
  3- myobj **ptrc = new *myobj();
  </code></pre>
  
  <p>Here is my understanding , please correct me if I am wrong. Also the addresses in the image are totally imaginary (I know they don't make sense). My major concerns of understanding are basically with statement 2 and statement 3.</p>
  
  <p>Statement 1 :
  ptra (which is some address on the stack) points to an address on the heap</p>
  
  <p>Statement 2:
  ptra (which is some address on the stack) points to one address which has 2 parts ? Is that correct ? </p>
  
  <p><img src="https://i.stack.imgur.com/ivHRT.png" alt="enter image description here"></p>