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