Re:Porting to GCC 14: C language issues
by fractalb on Monday February 19, 2024 @10:48AM
(#39431040)
VLA support is mandatory in C23? I'd like to know the rationale behind this decision. Can you provide any references?
Thanks.
[ Parent
| on HN ]
If I understand right, this is mandatory:
void example(int n) { printf("%zu", sizeof(int[n])); }
void example2(int n, int (*a)[n]) { }
This is optional: void example3(int n) { int x[n]; }