C99 doesn't need function bodies, or 'VLAs are Turing complete'
Home
19 Feb 2022
#programming
#c
Preface
The 1999 revision to the C programming language brought several interesting
changes and additions to the standard. Among those are variable length arrays,
or VLAs for short, which allow array types to have lengths that are determined
at runtime. These can show up in different contexts, but for the purposes of
this post we will be looking at VLAs as parameters to functions. For example:
void f(int n, float v[n]);
Since array parameters decay to their corre...
Read more at lemon.rip