binary search segmentation fault in c++

前端 未结 0 917
死守一世寂寞
死守一世寂寞 2020-12-12 15:19

This works fine...the size of the array is just 7.

// item = search item
int bin(int arr[], int item, int startIndex, int endIndex)
{
  if(startIndex <= en         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题