Hacker News new | ask | show | jobs
by jenadine 871 days ago
Of course C can do static array:

    int array[N]; 
is one.
1 comments

But not an abstract data structure that can be allocated on the stack.

(Your example can go on the stack. A struct with a final array member of unspecified size can work as an abstract data structure. But you can't have both at once.)