阅读背景:

C90中是否真的不允许使用可变长度数组?

来源:互联网 

I'm reading about VLAs in C Primer Plus, and this book strictly says that the introduction of VLAs to C began with the C99 standard. Whenever I attempt to declare a loop control variable within the header of a for loop, gcc informs me that this action only allowed in C99 mode. However, the following test code compiles and works (although it prints garbage variables, which is to be expected considering none of the array elements were initialized).I'm reading about VLAs in C Primer Plus, and th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: