News for hackers. Stuff that matters.
Re:Why 37signals Doesn't Hire Programmers Based on Brainteasers by demallien on Friday January 06, 2012 @01:21AM (#3432255)
When did C start accepting non-constants for array size declarations?
Re:Why 37signals Doesn't Hire Programmers Based on Brainteasers by hn_reader on Friday January 06, 2012 @01:52AM (#3432330)
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.
Re:Why 37signals Doesn't Hire Programmers Based on Brainteasers by demallien on Friday January 06, 2012 @06:02AM (#3432841)
Ahhh, useful tip. I've just been using alloca instead...
Re:Why 37signals Doesn't Hire Programmers Based on Brainteasers by haberman on Friday January 06, 2012 @04:06AM (#3432604)
Variable-length arrays were added in C99.