Y
Hacker News
new
|
ask
|
show
|
jobs
by
demallien
5277 days ago
When did C start accepting non-constants for array size declarations?
2 comments
hn_reader
5277 days ago
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.
link
demallien
5277 days ago
Ahhh, useful tip. I've just been using alloca instead...
link
haberman
5277 days ago
Variable-length arrays were added in C99.
link