title: Is it possible to store 10 million numbers in array?
body: <p>I want to know how many numbers can you store in array?</p>
  
  <pre><code>srand (time(NULL));
  int array[10000000];
  for(int i = 0; i &lt; 10000000; i++){
      array[i] = (rand() % 10000000) + 1;
  }
  </code></pre>
  
  <p>Every time I want to store 10.000.000 numbers in array my program crashed (Eclipse). I even tryed Visual Studio and it crashed to.</p>
  
  <p>So i want to know how many numbers can I store in array or is something wrong with my code?</p>