标签:c语言面试题
#include <stdio.h>
#define STR(s) #s
#define CONS(a,b) (int)(a##e##b)
int main()
{
printf(STR(vck));
printf("\n");
//vck
//2000
printf("%d\n",CONS(2,3);
return 0
}宏定义中,#把宏参数变为一个字符串,用##把两个宏参数贴合在一起。
本文出自 “沃特” 博客,请务必保留此出处http://water3700348.blog.51cto.com/13058625/1965307
标签:c语言面试题
原文地址:http://water3700348.blog.51cto.com/13058625/1965307