当前位置:网站首页>Use of C language and
Use of C language and
2022-04-23 06:48:00 【tilblackout】
Linux Occasionally encountered in the source code # Number , Although seldom used , But take a note :
①#: Put a double quotation mark on the left and right of the macro variable it refers to
Premise :
printf("123""456"); //printf It can be used like this , Output 123456
example :
#define test(EXP) #EXP
printf("123"test(45)"6");// Equivalent to printf("123""45""6");
②##: In the macro definition with parameters, two substrings (token) Join together to form a new substring ( The string ).
- Substring : The smallest syntax unit recognized by the compiler
#define test(n) a##n##c
int test(b)=123; # Equivalent to int abc=123
printf("%d",abc); # Output 123
版权声明
本文为[tilblackout]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230549282476.html
边栏推荐
- Collection of practical tips for C language (continuously updated)
- 欢迎使用Markdown编辑器
- 统计字符串中每个字符出现的次数
- [UDS unified diagnostic service] III. application layer protocol (1)
- Shell脚本 单引号、双引号和反引号的区别
- Analysis and setting of dead time
- 基于VGG卷积神经网络的图像识别代码实现
- 2020 Jiangsu Collegiate Programming Contest-A.Array
- The use of volatile in C language
- cartographer_node 编译没问题,但是运行直接挂掉的bug
猜你喜欢
MOS管特性和导通过程
元素计算距离与event事件对象
HDU-Tunnel Warfare
FOC SVPWM函数PWMC_SetPhaseVoltage解析
HDU-Tunnel Warfare
Eigen 学习总结
信息学一本通-小球
C [document operation] PDF files and pictures are converted to each other
[UDS unified diagnosis service] i. diagnosis overview (3) - ISO 15765 architecture
Detailed explanation and application of PN junction and diode principle
随机推荐
2020 Jiangsu Collegiate Programming Contest-A.Array
微信小程序之改变数组中某值,对象中某值的方法
Makefile foundation, common functions and general makefile
生成快捷方式
HDU-Memory Control
Node的数据库编程
欢迎使用Markdown编辑器
赛氪-zeal
赛氪-二进制
Principle and characteristic analysis of triode
Node的文件系统及Buffer概述
_findnext 报错
邮箱字符串判断
C language advanced notes 3
el-form表单多重循环校验
Notes on advanced points of C language 4
Informatics one book pass - small ball
修改注册表的值
查漏补缺(八)
死区时间的分析与设置