Dynamically allocate it with malloc
. By declaring it statically you use the stack, which has a maximum size that the heap (used in dynamic allocations) does not.
int *pointer = malloc (sizeof (*pointer) * (100000*100000));
Then, to access it, use indices to represent the x
and y
coordinates.