sir base address of an array means address of first element of array
so while finding the auto first=lower_bound(a,a+n,2)-a
int this sir said we need to subtract base address so he subtracted a
and got no of boxes before lower bound
why i am getting an address returned and not the no of boxes as sir got when i subtract -a[0] from lower_bound
plzz clear my doubt
code link of prateek bhaiya