title: Maximum size of int array?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3049934/c-programming-why-does-this-large-array-declaration-produce-a-segmentation-faul">C programming, why does this large array declaration produce a segmentation fault?</a>  </p>
  </blockquote>
  
  
  
  <p>I have written a simple program.</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main(int argc, char* argv[])
  {
      int genotype[150000000];
  }
  </code></pre>
  
  <p>But I get a strange error:</p>
  
  <blockquote>
    <p>RUN FAILED (exit value 1, total time: 131ms)</p>
  </blockquote>
  
  <p>How can I save this amount of <code>int</code>?</p>
  
  <p>(I have enough memory to save this amount of <code>int</code>s and my computer is 64-bit)</p>