Re: Strange thing with static Array!

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

 



On Sat, Feb 28, 2009 at 04:47, gfx art <xgrafix@xxxxxxxxx> wrote:
>
> as I knew and learned that we can't compile a dynamic size with a
> static array at compile time
>
> but my code below can be compiled and I can change the size every time
> I run the code
>
> also it is working at run time!!
>

GCC allows the Variable Length Arrays feature from C99 in C++ as an extension.

Consider compiling with -ansi -pedantic

~ Scott

[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