title: Delete a node without head pointer
body: <p>I read that it is possible to delete a node from a linked list,of which head pointer is not given, only if it is not the last linked list.
  The cpp code is as follows,</p>
  <pre><code>Node *r=node-&gt;next;
  node-&gt;data=r-&gt;data;
  node-&gt;next=r-&gt;next;
  free(r);
  </code></pre>
  <p>I read that this code cannot be used to delete last linked list,we need to put extra conditions.I cant understand why?</p>