I need an int array of size 20000000. If I put it in main() it will result in sigsegv. But not if I declare it as a global varialbe. What's the difference?
int a[20000000] = {0};
I need an int array of size 20000000. If I put it in main() it will result in sigsegv. But not if I declare it as a global varialbe. What's the difference?
int a[20000000] = {0};