Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

VLAs on the stack were introduced in C99. They became optional in C11. They are a GNU extension for C++, though.

BTW, MSVC never supported C99 or VLAs. Recent versions support C11.



Thanks, didn't know they were in the standard (for a while anyway).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: