title: Working with files in C - gives incompatible integer to pointer conversion (code is taken from The C book)
body: <p>I got very stupid error and I have no idea why it is occurring in my code. I simply use code from The C book and it seems that nothing special is going on here..
  Thanks for any help.</p>
  
  <pre><code>int main(int argc, const char * argv[])
  {
      FILE *fp;    // Incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *'
      fp = fopen(argv[1], 'r');
  
      return 0;
  }
  </code></pre>