Lisandro Dalcin <[email protected]> writes:

> PS: BTW, if you use typeof() [*], you can simplify these VLA declarations:
>
> double (*a)[m][n] = (typeof(a)) p;
> a[i][j][k] = 42;
>
> [*] Don't remember if it is part of C99 or up

typeof isn't in any standard, including proposed (-std=c2x).  You can
use __typeof as a GCC/Clang extension even with -std=c*, but it isn't
portable.

Reply via email to