int *array = malloc(100000000 * sizeof(int)); int i; for(i = 0; i < 100000000; i++){ array[i] = i + 1; }