title: C how strcpy works and Does it change the size of the original string?
body: <p>I have this code..</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main() {
  
      char a[6]="Hello";
  
      char b[]="this is mine";
  
      strcpy(a,b);
  
      printf("%d\n",sizeof(a));
      printf("%d\n",sizeof(b));
  
      printf("%s\n",a);
      printf("%s\n",b);
  
      printf("%d\n",sizeof(a));
  
      return 0;
  }
  </code></pre>
  
  <hr>
  
  
  
  <pre class="lang-none prettyprint-override"><code>6
  13
  this is mine
  this is mine
  6
  </code></pre>
  
  <p>I want to ask even I have copied the larger strng to <code>a</code> but its size is not changing but its contents are changing why?</p>
  
  <p>Any help would be appreciated..</p>