在C语言中,是否可以将多个#define
预处理命令放在一起?
例如,不是这样写:
#define a 1
#define b 2
#define c 3 ...
只需要这个:
#define a1, b2, c3
在C语言中,是否可以将多个#define
预处理命令放在一起?
例如,不是这样写:
#define a 1
#define b 2
#define c 3 ...
#define a1, b2, c3
#define
开头的语法只有一个标识符(不计算标识符列表中的函数参数)和一个替换列表在新行字符之前。n1570.pdf
。 - Jens Gustedt
int a = 1, b = 2, c = 3;
- phuclv