title: How to delete structure entries in C
body: <p>From a list of structures how can we delete a few of them.  After deleting the structure there should not be any empty space left behind.  </p>
  
  <p>The following code was tried to achieve  the task, but it didn't work.</p>
  
  <pre><code>   struct symtab *sp;
     for(sp = symtab; sp &lt; &amp;symtab[NSYMS]; sp++)
         if(sp-&gt;scope == scope) // delete
         {
             sp = sp+1;
  
         }
  </code></pre>