DraculaW

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  19 随笔 :: 0 文章 :: 7 评论 :: 0 Trackbacks
re: 奇怪的g++的行为 DraculaW 2008-08-13 19:43
Variable-length automatic arrays are allowed in ISO C99, and as an extension GCC accepts them in C89 mode and in C++. (However, GCC's implementation of variable-length arrays does not yet conform in detail to the ISO C99 standard.) These arrays are declared like any other automatic arrays, but with a length that is not a constant expression. The storage is allocated at the point of declaration and deallocated when the brace-level is exited.

http://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
re: 从csdn搬家过来了 DraculaW 2007-11-16 19:06
同感 因为打开csdn太慢了... 不知道他们怎么搞的