L
lovecreatesbeauty
It is strange. Happen to get following the fragment compiled
successfully. Is there anything wrong with my compiler or my mind?
Please guide me to correct my understanding on it.
Sincerely,
lovecreatesbeauty
$ cat p113.c
int main(void)
{
int len = 100;
int a[len];
}
$ gcc --version
gcc (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ gcc -std=c89 p113.c
$ gcc -std=c99 p113.c
$
successfully. Is there anything wrong with my compiler or my mind?
Please guide me to correct my understanding on it.
Sincerely,
lovecreatesbeauty
$ cat p113.c
int main(void)
{
int len = 100;
int a[len];
}
$ gcc --version
gcc (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ gcc -std=c89 p113.c
$ gcc -std=c99 p113.c
$