Program crashes when array size is one million [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Big array gives segmentation error in C i'm trying to compare merge sort and quick sort with different input sizes like 10.000, 100.000, and 1.000.000. However, when i give one million input size program is crashing and i don't know why ?.On the other hand, array is filled with reading from a file which contains numbers and here is my simple merge sort. #include <stdio.h> #include <stdlib.h> #include <sys/time.h