当前位置:网站首页>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
边栏推荐
猜你喜欢

VHDL finite state machine (FSM) code example

QT add qserialport class to realize serial port operation

js获取链接?后边的参数名称或者值,根据url ?后的参数做判断

Qt 给应用程序加图标

谈谈v-if显示隐藏问题

FOC single resistance sampling position loop control servo motor
![[UDS] unified diagnostic service (UDS)](/img/ed/8c16e4f1136fff95a829be410cab11.png)
[UDS] unified diagnostic service (UDS)

汇编 32位无符号加法计算器

说说ts的心里话
![[UDS unified diagnostic service] i. overview of diagnosis (4) - basic concepts and terms](/img/fb/3d3cf54dc5b67ce42d60e0fe63baa6.png)
[UDS unified diagnostic service] i. overview of diagnosis (4) - basic concepts and terms
随机推荐
uniapp 自定义搜索框适配小程序对齐胶囊
查漏补缺(九)---程序篇
useCenterHook
[UDS] unified diagnostic service (UDS)
查漏补缺(六)
QT add qserialport class to realize serial port operation
SDOI2009-HH的项链
ES6面试题(参考文档)
三极管原理及特性分析
Log writing method (with time)
cartographer_node 编译没问题,但是运行直接挂掉的bug
生成快捷方式
2020 Jiangsu Collegiate Programming Contest-A.Array
赛氪-二进制
undefined reference to `Nabo::NearestNeighbourSearch
C [document operation] PDF files and pictures are converted to each other
ES6
Introduction to nonparametric camera distortion model
QT icon application
ES6的新特性