预处理运算符
The ## is a preprocessor operator, which is used to concatenate two tokens. This operator works on two tokens, its takes two tokens and concatenate/combine them in a single token.
##是一个预处理程序运算符,用于连接两个令牌。 该运算符处理两个令牌,它使用两个令牌并将它们串联/组合为一个令牌。
Example:
例:
#include <stdio.h>
#define VAR(X,Y) X##Y
int main(){
int ab = 100;
printf("%d\n",VAR(a,b));
return 0;
}
Output
输出量
100
翻译自: https://www.includehelp.com/c-programs/double-hash-preprocessor-operator-example.aspx
预处理运算符