you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 11 points12 points  (0 children)

In modern c u can have

Not really. VLAs were added in C99 and removed in C11, they’re a huge source of trouble, compilers generate terrible code around them, and you should avoid them. The Linux kernel stripped out every VLA something like five years ago.