این طوری دیگه

int* array = (int*)malloc(sizeof(int)*4194304);