Why does this happen ??

Alexandre Oliva aoliva@redhat.com
Thu Nov 30 10:13:00 GMT 2000


On Nov 30, 2000, Davy Durham <david.durham@wcom.com> wrote:

>     char s[]="Hello World";

> this will make a stack array of 11+1 chars containing "Hello World"

Initializing an automatic array isn't permitted in ISO C,
unfortunately.  GCC supports it as an extension.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Gcc mailing list