Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
demallien
· 14y ago · 0 comments
When did C start accepting non-constants for array size declarations?
Comments
[–]
hn_reader
14y 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.
[–]
demallien
OP
14y ago
Ahhh, useful tip. I've just been using alloca instead...
[–]
haberman
14y ago
Variable-length arrays were added in C99.