Create a big array in C++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1847789/segmentation-fault-on-large-array-sizes">Segmentation fault on large array sizes</a>  </p>
</blockquote>



<p>Hi all</p>

<p>I am trying to create a very big array in the VS 2010 using C++.</p>

<p>When I try to create a array like below</p>

<pre><code>int dp[4501][4501]
or
int dp[1000][1000]
</code></pre>

<p>It threw an exception "Stack Overflow"
Then I change it to:</p>

<pre><code>int dp[100][100]
</code></pre>

<p>everything is fine.</p>

<p>So if I want to create a big array like above, what should I do?</p>

<p>Best Regards,</p>
