title: fseek Process finished with exit code 11
body: <p>I don't know why, but when I do <code>./a.out</code>, it gives me that error:</p>
  
  <p><code>Process finished with exit code 11</code></p>
  
  <p>If I comment the <code>fseek</code> and the <code>ftell</code>, it doesn't give me an error? 
  why ? 
  I did a logical error? </p>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  
  int main (){
  
  
          FILE *file_pointer;
          int size=0;
  
  
          if((file_pointer = fopen("file.txt","rb")) == NULL)
          {
              printf("Ok Man File was charge in the pointer");
              fseek(file_pointer, 0, SEEK_END);
              size=ftell(file_pointer);
  
              printf("%d",size);
              rewind(file_pointer);
              fclose(file_pointer);
          } else
              printf("File Not Found");
  
  
  
  
      return 0;
  }
  </code></pre>