I have a program that has to declare a huge integer array of the size 1000000 in C (using GNU GCC compiler). I tried to declare the array in two different ways.
The tw
Since you used the word static in the title, it is a wonder that it did not occur to actually declare the variable static.
static
int main() { static int arr[1000000]; return 0; }
You could also use dynamic allocation.