This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Gcc extension: have a semicolon after a function definition ??


Hi,

I am wondering why following program is compiled successfully by gcc ? Please notice there is a ";" after the function definition.

Is there a gcc extension for it ?

/* foo.c */
int main() {
   printf("hello world\n");
} ;

Thanks.

Michael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]