title: Calling malloc in structure
body: <pre><code>struct NODE{
  double theta, phi;
  int ID;
  int pointer;
  };
  
  int main(void)
  {
  FILE *fp;           
  
  int  ID[5000][5000];
  struct NODE node[5000*5000];    
  struct NODE node2[5000*5000];
  int elem[5000][8];      
  int tempID;
  for(i=0; i&lt; 5000*5000; i++){
      node[i].theta = 0;
      node[i].phi   = 0;
  }
  for(k=0; k&lt;5000; k++){
      for(j=0; j&lt; 5000; j++){
          ID[k][j] = -1;
      }
  }
  }
  </code></pre>
  
  <p>This is a part of the source code of my project. here i want to allocate memory in this lines using malloc. How can i do this??</p>
  
  <pre><code>struct NODE node[5000*5000];    
  struct NODE node2[5000*5000];
  </code></pre>