Segmentation fault (core dumped) with strcpy : <p>I'v encountered "Segmentation fault (core dumped)" when compile my C program in *nix. I've narrowed the mistake to this line (without this line my program can run):</p>

<pre><code>strcpy(con[count], "1234");
</code></pre>

<p>Before that, I declared con as:</p>

<pre><code>char *con[30];
</code></pre>

<p>And count is always smaller than 30.</p>

<p>What's wrong with this line? How should I change it?</p>
