Sample code for macro to find largest of 2 numbers in c:
What is the output of below c program?
#define max(a,b) ((a)>(b)? (a):(b))
compile time error, negative values not allowed
no error no output
this is a macro to find bigger of two give numbers -1, -2. since -1 is bigger it prints it.
Back To Top