Looking for a macro that takes four arguments and returns the largest value?
#define MAX4 (A, B, C, D)
Looking for a macro that takes four arguments and returns the largest value?
#define MAX4 (A, B, C, D)
>Looking for a macro that takes four arguments and returns the
>largest value?
No, I'm not looking for such, but I guess you are.
Code:#define MAX4(a,b,c,d) ((((a > b) ? a : b) > c) ? ((a > b) ? a : b) : c) > d ? \
((((a > b) ? a : b) > c) ? ((a > b) ? a : b) : c) : d
thnx :)