Answers for "how to find whether a number is present in array or not in c++"

C++
4

how to check if a value is inside an array in c++

if (std::find(std::begin(ourArray), std::end(ourArray), 99) != std::end(ourArray))
{
	// Do stuff
}
Posted by: Guest on March-28-2021

Code answers related to "how to find whether a number is present in array or not in c++"

Browse Popular Code Answers by Language