Int bisearch(char**arr, int b, int e, char*v){ Int minIndex = b, maxIndex = e, midIndex; while(minIndex<maxindex){ midIndex=(minIndex+maxIndex)/2; if(strcmp(arr[midIndx],v<=0)){ minIndex = midIndex; }else{ maxIndex=minIndex; } } if(!strcmp(arr[maxIndex],v)){ return maxIndex; }else{ return -1; } }