My question is related to C language. I have to create a big array of around two million elements but the computer gives a "Segmentation fault (Core dumped)" error. I am simply saying:
int integer_array[2000000];
float float_array[2000000];
I am sure this has something to do with the memory allocated to arrays but I cannot figure out the right solution.