title: Pointers box and circle diagram
body: <p>Given the following Code</p>
  
  <pre><code>int main()
  {
    int z;
    int **x;
    int * y;
  
    x = (int**)malloc(sizeof(int*));
    y = (int*)malloc(sizeof(int));
    *y = 6;
    *x = y; // Point 1
    z = 3;
    *x = &amp;z; // Point 2
  }
  </code></pre>
  
  <p>I am to draw box-and-circle diagrams of variables at point 1 and point 2.</p>
  
  <p>Following is what i have got  point 1.</p>
  
  <p><img src="https://i.stack.imgur.com/16ExZ.png" alt="enter image description here"></p>
  
  <p>Following is what i have got for point 2.
  <img src="https://i.stack.imgur.com/JjwSJ.png" alt="enter image description here"></p>
  
  <p>can anyone confirm if my approach is correct and my solution? sorry i am new to pointers and c.</p>