且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

你能举一个C++中堆栈溢出的例子吗?

更新时间:2023-11-10 16:12:52

不涉及无限递归的典型情况是在堆栈上声明一个太大的自动变量.例如:

The typical case that does not involve infinite recursion is declaring an automatic variable on the stack that is too large. For example:

int foo()
{
    int array[1000000];

}