title: C -Implementing strcpy() But Segfault
body: <p>I have made a <code>strcpy()</code> function
  in C, and I am copying words from one array to other not just letters, but when I run it I am getting Segmentation fault what to do?</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  void strcpy1(char *dest[], char source[])
  {
      while ((*dest++ = *source++));
  }
  
  int main()
  {
      char source[3][20] = { &quot;I&quot;, &quot;made&quot;, &quot;this&quot; };
      char dest[3][20];
  
      strcpy1(&amp;dest, source);
      
      //printing destination array contents   
      for (int i = 0; i &lt; 3; i++) {
          printf(&quot;%s\n&quot;, dest[i][20]);
      }
  
      return 0;
  }
  </code></pre>