Strange thing with static Array!
Rohit Garg
rpg.314@gmail.com
Sat Feb 28 15:55:00 GMT 2009
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@verizon.net> 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
More information about the Gcc-help
mailing list