我看window中栈空间大小为2MB(还是4MB)
那么意味着可以开int数组512*1024大小
但是这样是无法运行的,因为其他语句也需要栈空间
所以我想问一下在函数中数组最大可以开多少
#include <cstdio> using namespace std; const int N = 510 * 1024; int main() { int a[N]; a[0] = 1; printf("%d\n", a[0]); return 0; }