I am working on an FEM program written in C, for my undergraduate degree which needs very large arrays (arrays consisting a[1 000 000] elements) to store data, and then manipulating them. It uses 2D arrays also, which have similar unusually huge sizes (say a[100 000][100 000]).
The program terminates without showing any error. It has been found that just when the program will execute the routine for generating mesh (which uses large 2D arrays), it crashes.