Suppose we are given an array “a”, of size ,let’s suppose “n”. Suppose we have a value “x”.
what does the statement cout<<lower_bound(a,a+n,x)-a; print??
I know about lower_bound for arrays/vectors, but I have never encountered the expression above.