Answers for "c++ min"

C++
6

c++ min

#include <algorithm>    // std::min
std::min(1,2);
Posted by: Guest on August-02-2020
2

c++ min int

int min = INT_MIN;
Posted by: Guest on September-28-2020
0

C++ min

#include <iostream>

template <class T> const T& min(const T& a, const T& b)
{
	return a < b ? a : b;
}

int main()
{
	std::cout << min(1, 2) << std::endl;
}
Posted by: Guest on August-08-2021

Browse Popular Code Answers by Language