title: What is the meaning of Bus: error 10 in C
body: <p>Below is my code</p>
  <pre><code>#import &lt;stdio.h&gt;
  #import &lt;string.h&gt;
  
  int main(int argc, const char *argv[])
  {
      char *str = &quot;First string&quot;;
      char *str2 = &quot;Second string&quot;;
      
      strcpy(str, str2);
      return 0;
  }
  </code></pre>
  <p>It compiles just fine without any warning or errors, but when I run the code I get the error below</p>
  <pre><code>Bus error: 10
  </code></pre>
  <p>What did I miss ?</p>