title: Segmentation fault on large array sizes
body: <p>The following code gives me a segmentation fault when run on a 2Gb machine, but works on a 4GB machine.</p>
  
  <pre><code>int main()
  {
     int c[1000000];
     cout &lt;&lt; "done\n";
     return 0;
  }
  </code></pre>
  
  <p>The size of the array is just 4Mb. Is there a limit on the size of an array that can be used in c++?</p>