2011/12/10 Krzysztof Żelechowski: > { int x [] = {}; } > > Why is it valid and what does it mean? > It's the GNU zero-length array extension: http://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc/Zero-Length.html I believe it's equivalent to: int x[0] = { };
2011/12/10 Krzysztof Żelechowski: > { int x [] = {}; } > > Why is it valid and what does it mean? > It's the GNU zero-length array extension: http://gcc.gnu.org/onlinedocs/gcc-4.6.2/gcc/Zero-Length.html I believe it's equivalent to: int x[0] = { };