ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
在支持c99标准的编译器中,可以使用变量定义数组。 1. 微软官方描述vs2013编译器不支持c99.: Microsoft C conforms to the standard for the C language as set forth in the 9899:1990 edition of the ANSI C standard. 2. 以下代码在Linux GCC支持c99编译器编译通过 ~~~ int main() { int a = 10; int arr[a]; getchar(); return 0; } ~~~