#include <stdio.h>
//define定义标识符常量
#define MAX 1000
//define定义宏
#define ADD(x,y) ((x)+(y))
int main()
{
int sum = ADD(2,3);
printf("sum = %d\n",sum);
sum = 10 * ADD(2,3);
printf("sum = %d\n", sum);
return 0;
}
标签:定义,int,sum,ADD,printf,define,常量
From: https://blog.51cto.com/u_16542475/9640083