相关疑难解决方法(0)

C预处理器和操作顺序

我正在学习C,但我不明白这一点:

#define square(x) x*x
a = square(2+3) //a = 11
Run Code Online (Sandbox Code Playgroud)

当这个运行时,为什么a最终会出现11

c c++ macros c-preprocessor

9
推荐指数
2
解决办法
1008
查看次数

标签 统计

c ×1

c++ ×1

c-preprocessor ×1

macros ×1