/* Program to demonstrate recursive binary search */ /* We assume that the array is sorted in ascending order */ #include #include int binary(int x[ ], int low, int high, int key) ; void main() { int i, n, x[20], key ; clrscr() ; printf("Enter the number of elements: ") ; scanf("%d",&n) ; printf("Enter the elements:\n") ; for(i=0 ; ihigh) return -1 ; mid=(low+high)/2 ; if(key==x[mid]) return mid ; else if(keyx[mid]) if array x is in descending order */