main function stack size
<p>Max function stack size is limited and can be quickly exhausted if we use big stack variables or get careless with recursive functions.</p>

<p>But main's stack isn't really a stack. main is always called exactly once and never recursively. By all means main's stack is static storage allocated at the very beginning and it lives until the very end. Does it mean I can allocate big arrays in main's stack?</p>

<pre><code>int main()
{
    double a[5000000];
}
</code></pre>
