C Language Study - the use of symbol '##'
2015-02-20 16:46
375 查看
##
#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;
}
#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 importance of "Debug"
- How to enable the use of 'Ad Hoc Distributed Queries' by using sp_configure
- The study of Programming Windows with MFC--print's example
- How to properly use &#39;dd&#39; to benchmark the write speed of your disk?
- C Language Study - how to use '#'
- VS2010:error C3083: 'Windows': the symbol to the left of a '::' must be a type
- VS2010:error C3083: 'Office': the symbol to the left of a '::' must be a type
- ADO.NET Entity Framework: The version of SQL Server in use does not support datatype 'datetime2'
- Photoshop Skill IV: The third part of Sharpen's Tips 锐化的技巧之三
- why couldn't fixed all of the bugs we found?
- Photoshop Skill VIII: The seventh part of Sharpen's Tips 锐化的技巧之七
- Photoshop Skill VI: The fifth part of Sharpen's Tips 锐化的技巧之五
- COPYRIGHT LAW OF THE PEOPLE'S REPUBLIC OF CHINA 《中华人民共和国著作权法》英文版
- use regular expression to delete the lines which we don't need
- Photoshop Skill II: The first part of Sharpen's Tips 锐化的技巧之一
- Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
- Selected solutions to exercise of "The C Programming Language" 2e (Part 6)
- Review of Debugging the development process 7. It's All About Attitude
- Some of the best Open Source Project's in VC++ & MFC
- Photoshop Skill III: The second part of Sharpen's Tips 锐化的技巧之二