Re: Strange thing with static Array!

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

 



Yes, some comilers (gcc included apparently) allow this. I could be
wrong but this is apparently not in the spec.

On Sat, Feb 28, 2009 at 6:00 PM, John Fine <johnsfine@xxxxxxxxxxx> wrote:
> Your array isn't static.
>
> gfx art 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
>>
>>
>>
>



-- 
Rohit Garg

http://rpg-314.blogspot.com/

Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay

[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