Why does this code crash?
<p>The following code causes a stack overflow but I don't see why...</p>

<pre><code>int _tmain(int argc, _TCHAR* argv[])
{
    cout &lt;&lt; "start";
    char bmp[1024][768][3];
for (int p = 0; p &lt; 9000; ++p)
{
    for(int i = 0; i &lt; 1024; ++i)
    {
        for(int j = 0; j &lt; 768; ++j)
        {
            bmp[i][j][0] = 20;
        }

    }
}

cout &lt;&lt; "Stop";


    return 0;
}
</code></pre>

<p>Thanks</p>
