On Do, 2021-01-21 at 09:17 +1100, Dave Horsfall wrote:
printf("%s\n", {"true",
"false"}[1]);
That would evaluate to a constant being printed (it's a direct array
reference). Did you mean something like "...[i]" instead? That would
indeed be neat...
I think it doesn't matter if the index expression is
a constant expression or not. The point here, as I
understood, is the definition of an unnamed (and not
explicitly typed) array "on the fly".
Hellwig