in c++, i have a problem with binary search algorithm. here is my code :
int main() { int a[10] = { 3,5,9,11,12,19,20,25,26,30 }; int beg = 0, end = 9