Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
demallien
14y ago
0 comments
Save
Share
When did C start accepting non-constants for array size declarations?
0 comments
3 comments · 2 top-level
top
newest
oldest
hn_reader
14y ago
· 1 in thread
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.
j
/
k
navigate · click thread line to collapse