编译器是gcc
您说的标准是C89还是C99,我记得可以在{}里声明变量
Variable Scope
•Refers to where variables can be referenced
•Global scope
•A variable declared outside any blocks/functions
•is available anywhere after its declaration
•Local scope
•A variable declared within a block
•is only available in the block, after its declaration.
具体是什么标准我就不太清楚了。
我使用gcc不多,大部分用vc进行编译。不过gcc和vc的差异还是蛮大的。比如你所用的动态数组的问题,前两台我用xcode编码的时候发现竟然支持动态数组,很诧异,但是vs2012就不支持。
不过一般来讲大家都认为gcc是最标准的C语言编译器。
至于标准的具体内容,我没有深究过。你如果想要研究的话可以参阅以下标准。