title: ERROR: variable "string" is not initialized
body: <p>I wrote this code that reads from a .txt a string and settles it in a char *, but it gives me error that the variable "string" is not initialized, even if i initialized it inside the fscanf, can u tell me where i wrong? Thanks!</p>
  
  <pre><code>    char *string;
      FILE *fp = fopen("words.txt", "r");
      fscanf(fp, "%s", string);
  </code></pre>