C++ Language/Std/CRuntime/BasicAlgorithms/Search

The C-Runtime's basic implementation of linear search by  will return   if the key does not already exist.

Binary search by  expects the input to be both sorted and unique.

Additional information about C-Runtime's search functions (includes interactive examples)