3 ms·
What do you mean? Variable-length arrays are OK in C.
by enriquto 10y ago
What do you mean? Variable-length arrays are OK in C.
- awinter-py 10y agooops -- you're right. https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html Legal in C99, available in C++ on gcc/clang.
- pjmlp 10y agoOptional in C11, not accepted in ANSI C++17.
- pjmlp 10y agoNot in C11, they were removed due to security issues and became an optional language feature.