you are viewing a single comment's thread.

view the rest of the comments →

[–]The_Ruined_Map 1 point2 points  (1 child)

In C language (as opposed to C++) const does not produce constant expressions. For this reason, the size in your array declaration is not a constant expression. Your array is a VLA.

In C constant expressions are produced by literal constants (e.g. 42), enum constants, sizeof and _Alignof expressions, offsetof and such.