title: cannot fscanf into a double dereferenced pointer
body: <p>I have an array elsewhere in my program:</p>
  
  <p><code>data=malloc(sizeof(int)*lines);</code></p>
  
  <p>I want to read data from a file into this array. I have opened the file etc.</p>
  
  <p>I created a function to read the data into this array:</p>
  
  <pre><code>int readfile(FILE* fp,int** storage_array,int lines)
  
  {
      int i=0;
  
      for(i=0; i&lt;lines; i++)
      {
          fscanf(fp,"%lf",&amp;(**storage_array+i));
      }
  
  
      rewind(fp);
  
      return 0;
  
  }
  </code></pre>
  
  <p>Dev c++ gives me</p>
  
  <p><code>invalid lvalue in unary '&amp;'</code> </p>
  
  <p>I have tried so many different ways to get this to work and it's really stressing me out :(</p>
  
  <p>Have you guyd got any ideas what i'm doing wrong?</p>
  
  <p>Thanks so much :)</p>