/** find the Middle element in the Array without sorting it. * This function uses a modified version of QuickSort, where we * only consider the one half of the array. * This is a recursive function where we look at some section of the array * (Concerned Array) at a time. * * @param low = Loweset index of the Concerned Array * @param high = Heighest index of the Concerned Array * @param rank = The rank of the element in concerned array */ #include int findElementAtRank(int arr[20], int low, int high, int rank){ int pivot = low; int l=low; int h = high; if(l<=h){ while(larr[pivot]) h--; if(l h ){ return findElementAtRank(arr, h+1, high, rank); }else{ return arr[h]; } } int main() { int a[20],i,a_length,median_1,median_2; float median; printf("enter the length of the array\n"); scanf("%d",&a_length); printf("enter the values\n"); for(i=0;i