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

Michael Gong mwgong@cs.toronto.edu
Tue Aug 8 20:34:00 GMT 2006


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 



More information about the Gcc-help mailing list