I am trying to create a 2 dimensional int
array of size 800.
This is my code:
#include <iostream>
int main()
{
int array[800][800];
std::cout << 1;
}
My problem is that it never prints 1
. I am using g++ as my compiler so it might have something to do with it's inner workings.
Furthermore, I couldn't find anywhere on the web saying there was a limit (except for 2^32 and such) to the size of a c-style array. When I try creating one with size 700 it works just fine.
Does anyone have an idea where this limit comes into effect and how I can overcome it?