title: How to understand the data move from A to B in character array？
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main ()
  {
      char a[10], b[9], c[5];
      scanf("%s", a);
      scanf("%s", b);
      scanf("%s", c);
      printf("%s\n", b);
      printf("%s %s %s", a, b, c);
  
      return 0;
  }
  </code></pre>
  
  <p>when input c[] array's number > 5, the rest osf the characters will be wrriten to b[] array, why?</p>
  
  <p>for example:</p>
  
  <p>input:
  program
  is
  wonderful</p>
  
  <p>output:
  rful
  program rful wonderful</p>