Vidyalelo
C++ Programming · Q712

C++ miscellaneous

Programming · C++ Programming · question 712

Q712

What will be the output of the following C++ code? #include #include #include using namespace std; int main () vector v = 4,2,10,5,1,8; if (binary_search(v.begin(), v.end(), 4)) cout << "found. "; else cout << "not found. "; return 0;

A.
found.
B.
not found.
Answer
C.
Error
D.
Segmentation fault

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board