Find the largest number from a set of define and set a define from the answer

#define numA 300
#define numB 600
#define numC 100
#define numD 200

#define Max(x,y)    ((x)>(y) ? (x) : (y))

#define Nummax(a,b,c,d) Max((a),Max((b),Max((c),(d))))
1 Like