小编Anw*_*ain的帖子

了解C中的宏

为什么以下代码的输出值为5?

#include<stdio.h>

#define A -B
#define B -C
#define C 5

int main()
{
  printf("The value of A is %d\n", A);
  return 0;
}
Run Code Online (Sandbox Code Playgroud)

c c++ c-preprocessor

7
推荐指数
2
解决办法
241
查看次数

标签 统计

c ×1

c++ ×1

c-preprocessor ×1