码迷,mamicode.com
首页 > 其他好文 > 详细

C Language Study - the use of symbol '##'

时间:2015-02-20 17:30:55      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

##

#include <stdio.h>

#define INTVARIABLE(n) i##n

int main(void)

{

          int INTVARIABLE(2) = 3;

          printf("i2=%d\n",i2);//output i2=3

          i2 = 5;

printf("i2=%d\n",i2);//output i2=5

          return 0;

}

C Language Study - the use of symbol '##'

标签:

原文地址:http://blog.csdn.net/oimchuan/article/details/43889193

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!