#include #include #define LENGTH 1000000 // --- the merging of two parts of the array a // --- the data is merged and stores in tmp // --- static void merge(int a[], int tmp[], int left, int right, int rightEnd ) { int leftEnd = right - 1; int k = left; int num = rightEnd - left + 1; while(left <= leftEnd && right <= rightEnd) if(a[left]