int square(int x) {
return x * x;
}
#define square(x) ((x) * (x))
[dywang@deyu zzz]$ vim preprocess5.c
[dywang@deyu zzz]$ cat preprocess5.c
#include <stdio.h>
#define MAX(x,y) ((x) > (y) ? (x) : (y))
int main(void) {
printf("Max between 20 and 10 is %d\n", MAX(10, 20));
return 0;
}
[dywang@deyu zzz]$ gcc -o preprocess5 preprocess5.c
[dywang@deyu zzz]$ ./preprocess5 Max between 20 and 10 is 20