I have the code:
#include <iostream>
using namespace std;
int main()
{
int a[1000000] = { 1, 2 };
return 0;
}
When I run it in visual studio I get:
(process 17300) exited with code -1073741571
With
int a[1000000] = {};
a[0] = 1;
I get the same error. If I lower it to 100000, it works fine. How can I avoid this error?