Re: empty initialisers for arrays of inferred size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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] = { };



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux