Use The C Max Function Code Example
Example: 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))
// For defining x > y #define MAX(X, Y) (((X) > (Y)) ? (X) : (Y)) // For defining x < y #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
Comments
Post a Comment