Re:Getting Past C
by enriquto on Wednesday January 04, 2017 @03:50AM
(#13316717)
What do you mean? Variable-length arrays are OK in C.
[ Parent
| on HN ]
Not in C11, they were removed due to security issues and became an optional language feature.
Re:Getting Past C
by awinter-py on Wednesday January 04, 2017 @07:48AM
(#13317782)
oops -- you're right.
https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
Legal in C99, available in C++ on gcc/clang.