title: very huge matrix in C programming
body: <p>Good day everyone,</p>
  
  <p>I'm new in C programming and I don't have a lot of knowledge on how to handle very huge matrix in C. e.g. Matrix size of 30.000 x 30.000.</p>
  
  <p>My first approach is to store dynamically memory:</p>
  
  <pre><code>int main()
  {      int **mat;
      int j;
      mat = (int **)malloc(R*sizeof(int*));
      for(j=0;j&lt;R;j++)
          mat[j]=(int*)malloc(P*sizeof(int));
  }
  </code></pre>
  
  <p>And it is a good idea to handle +/- matrix of 8.000 x 8.000. But, not bigger. So, I want to ask for any <em>light</em> to handle this kind of huge matrix, please.</p>
  
  <p>As I said before: I am new to C, so please don't expect too much experience.</p>
  
  <p><strong>Thanks in advance for any suggestion,</strong></p>
  
  <p>David Alejandro. </p>
  
  <p>PD: My laptop conf is linux ubuntu, 64bit, i7, and 4gb of ram.</p>