title: dynamically allocate memory for pointer to array of structure
body: <p>hi i have this structure</p>
  
  <pre><code>typedef struct STUDENT
  {
      char studName[20];
      int timeEnter;
      int timeUpdate;
  }STUDENT;
  </code></pre>
  
  <p>and the local pointer to array of structure</p>
  
  <pre><code>STUDENT *studArr[100];
  </code></pre>
  
  <p>I'm trying to allocate memory for the structure by doing reading in the first line of the file then use it to allocate memory for the structure.</p>
  
  <pre><code>fscanf(fp, "%s", &amp;first);
  **studArr = (STUDENT**) malloc(sizeof(STUDENT*)*first);
  </code></pre>
  
  <p>I got an error saying that no operator "=" matches these operands on the allocation line </p>
  
  <p>why am I gettting the error, what did i do wrong here?</p>
  
  <p>thank in advance</p>