title: Deleting structure in C programming
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  #include &lt;string.h&gt;
  
  typedef struct {
      char serie_calculator[45];
      char tip_procesor[78];
      char memorie[55];
      char hdd[60];
      char monitor[65];
  }Calculator;
  
  void deleting(Calculator *ct, int *dim, char serie[45])
  {
      int k = 0, i, j;
      for (i = 0;i&lt;(*dim);i++)
          if (strcmp((ct + i)-&gt;serie_calculator, serie) == 0)
          {
              k++;
              for (j = i;j &lt; (*dim - k);j++)
  
                  *(ct + j) = ct[j + 1]; // &lt;== This line here
  
          }
      *dim = *dim - k;
  }
  </code></pre>
  
  <p>In the <code>deleting</code> function, I don't understand what the line: <code>*(ct + j) = ct[j + 1];</code> does. Can somebody help? I hope that you understand the function, because this is just a sequence from the whole program.</p>