小编Ahm*_*ham的帖子

为什么预定义宏 __STDC_VERSION__ 未定义?

我想知道我当前在 Visual Studio C++ 中使用哪个 C 标准,但我在使用__STDC_VERSION__预定义宏和其他 C99 预定义宏时遇到了问题 - 出现一条错误,表明该标识符未定义,当我使用时,#ifndef __STDC_VERSION__似乎它没有定义。这是否意味着我正在使用 ANSI C?

下面是使用的示例代码__STDC_VERSION__

int main(void) {
   printf("%d\n", __STDC_VERSION__);
   return 0;
}
Run Code Online (Sandbox Code Playgroud)

c c99 visual-c++

1
推荐指数
1
解决办法
4600
查看次数

标签 统计

c ×1

c99 ×1

visual-c++ ×1