See the following part of the code for binary search:
if(A[mid]==num)
{
return mid;
}
else if(A[mid]<num)
{
return bsearch(A,low,mid-1);
}
else
{
return bsearch (A,mid+1,high);
}
Here 2 comparison in worst case for every recursive call
T(n)=T(n/2) +2