Answers for "how to apply max function in c++"

C++
1

max and min function in c++

int a = min(2,3);		// for two arguments
int b = max(2,3);
int x = min({2,3,4,5});  // for more than two arguments
int y = max({2,3,4,5});
// a = 2 	b = 3
// x = 2	y = 5
Posted by: Guest on March-07-2022
0

integer max value c++

int i=INT_MAX;
Posted by: Guest on February-13-2022

Code answers related to "how to apply max function in c++"

Browse Popular Code Answers by Language