End Google Ads 201810 - BS.net 01 --> This recursive function doesnt have a end point,becuase 12 item is not exist in the array.How we can fix this recursive function to solve this problem?
int _tmain(int argc, _TCHAR* argv[]){ int arr[10] = {1,2,3,4,5,6,7,8,9,10}; int sum; sum=BinSearch(arr,12,0,9); cout