title: Stack overflow exception in the silly program
body: <p>I'm using VS 2010.<br>
  When I run this program in the Debug mode it throws Stack overflow exception and shows a breakline in the file chkstk.asm at line 99.<br>
  But when I run it in the Release mode it's OK.<br>
  Also if I decrease the size of one of the arrays to 10000 it works well in Debug.   What is the reason?</p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  
  using namespace std;
  int main()
  {
      char w[1000001], temp[1000001];
      cout&lt;&lt;"Why?"&lt;&lt;endl;
      return 0;
  }
  </code></pre>