title: What does Bus error: 10 mean? And how to fix this error
body: <p>below is my code</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  
  char* get_string(char* question);
  
  int main(void)
  {
      char* name = get_string(&quot;Enter a name:&quot;);
      printf(&quot;%s\n&quot;, name);
      return 0;
  }
  
  char* get_string(char* question)
  {
      printf(&quot;%s&quot;, question);
      char* input;
      scanf(&quot;%s&quot;, input);
      return input;
  }
  </code></pre>
  <p>It compiles just fine without any warning or errors, but when I run the code I got this</p>
  <pre><code>Bus error: 10
  </code></pre>