Question: Which of the following C++ functions can be used to implement binary search on a sorted array?
Options:
Correct Answer: std::binary_search
Solution:
The std::binary_search function from the C++ Standard Library can be used to perform binary search on a sorted array.