Hacker News new | ask | show | jobs
by demallien 5277 days ago
When did C start accepting non-constants for array size declarations?
2 comments

I was wondering the same thing. But I can confirm it compiles and runs, though I had to supply a -std=c99 flag to gcc.
Ahhh, useful tip. I've just been using alloca instead...
Variable-length arrays were added in C99.