Answers for "max integer in c"

C++
1

How to define Max in define in c

// For defining x > y
#define MAX(X, Y) (((X) > (Y)) ? (X) : (Y))
// For defining x < y
#define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
Posted by: Guest on November-05-2020
1

maximum int c++

#include <limits>

int imin = std::numeric_limits<int>::min(); // minimum value
int imax = std::numeric_limits<int>::max(); // maximum value (2147483647)
Posted by: Guest on August-07-2020
0

max function c

#define new_max(x,y) (((x) >= (y)) ? (x) : (y))
#define new_min(x,y) (((x) <= (y)) ? (x) : (y))
Posted by: Guest on August-13-2021

Browse Popular Code Answers by Language