title: fscanf - segmentation fault (core dumped) in C
body: <p>Was trying to write a little program when faced a problem that has never occured to me before. There seems to be a segmentation fault in fscanf function, though can't really figure the problem out. Here's my code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(){
      FILE *fin = ("file.in", "r");
      int n, t;
      fscanf(fin, "%d %d", &amp;n, &amp;t);
      return 0;
  }
  </code></pre>
  
  <p>And the file.in:</p>
  
  <pre><code>3 19
  </code></pre>
  
  <p>Hope you have some ideas. Any help appreciated!<br/>
  Rugile :)</p>