当前位置:网站首页>宏定义问题记录day2
宏定义问题记录day2
2022-08-02 14:02:00 【熬夜退役选手337】
我算出来的答案是100
(x)<(y)? (x):(y) 的意思就是x小于y吗,如果是就输出x,不是就输出y
那 i < j ,输出的应该是 i =10
看到 k=10*MIN(i,j),我刚开始就理解成是k=10*i=100
这个运算结果是错误的
本题的答案为15,为什么呢?
因为宏定义是整个替换,而不是计算输出后的结果
也就是说 k=10*MIN(i,j)就是10*(x)<(y)? (x):(y),带入i和j,很明显100>15,所以k=y=15
如有帮助请一键三连,蟹蟹!!!
如有帮助请一键三连,蟹蟹!!!
如有帮助请一键三连,蟹蟹!!!
边栏推荐
猜你喜欢
What are the file encryption software?Keep your files safe
Briefly write about the use and experience of PPOCRLabel
云GPU(恒源云)训练的具体操作流程
Raj delivery notes - separation 第08 speak, speaking, reading and writing
Deep learning framework pytorch rapid development and actual combat chapter4
yolov5改进(一) 添加注意力集中机制
【ROS】工控机的软件包不编译
Linux: CentOS 7 install MySQL5.7
IDEA打包jar包
8580 Merge linked list
随机推荐
chapter6可视化(不想看版)
第十单元 前后连调
A little thought about password encryption
(ROS) (03) CMakeLists. TXT, rounding
第八单元 中间件
STM32 (F407) - stack
drf源码分析与全局捕获异常
Error Correction Design Principle of Hamming Check Code
Flask framework
[ROS](04)package.xml详解
How does Apache, the world's largest open source foundation, work?
yolov5,yolov4,yolov3乱七八糟的
Unit 11 Serializers
drf source code analysis and global catch exception
Sentinel源码(六)ParamFlowSlot热点参数限流
[ROS] The software package of the industrial computer does not compile
网络剪枝(1)
第六单元 初识ORM
第十四单元 视图集及路由
[ROS]roscd和cd的区别