title: C11 Bus error:10
body: <p>I am very new  in C, I am currently just trying to read a file with the contents "6" and nothing else. Whenever I run the file, I get: Bus Error:10. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  char input(void);
  
  int main(int argc, char** argv)
  {
  
  
      input();
  
      return (EXIT_SUCCESS);
  }
  
  char input(void)
  {
      FILE *fp;
      char *score;
  
      fp = fopen("data.bin", "rt");
  
  
      fscanf(fp,"%s", score);
  
      printf("%s", score);
  
      fclose(fp);
  
  }
  </code></pre>