title: Pointer points to an address I didn't expect
body: <p>I don't understand why <code>t-&gt;next</code> points to a different address than <code>t</code>. If the <code>t-&gt;next</code> pointer is equal to the address of <code>n</code> and the <code>t</code> pointer is equal to address of <code>t-&gt;next</code> why does <code>t-&gt;next</code> seem to point to a different adress? I'm stuck here.</p>
  
  <pre><code>struct Node {
      int data;
      Node* next;
  };
  
   int main() {
      Node* n;
      Node* t;
      Node* h;
  
      n = new Node;
      t = new Node;
  
      n-&gt;data = 2;
      t-&gt;next = n;
      t = t-&gt;next;
  
      cout &lt;&lt; n &lt;&lt; "\n" &lt;&lt; n-&gt;data &lt;&lt; "\n" &lt;&lt; t &lt;&lt; "\n" &lt;&lt; t-&gt;next &lt;&lt; endl;
  
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre>
  0x7a11c8
  2
  0x7a11c8
  0x65685372
  </pre>