This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Gcc extension: have a semicolon after a function definition ??
- From: "Michael Gong" <mwgong at cs dot toronto dot edu>
- To: <gcc-help at gcc dot gnu dot org>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 8 Aug 2006 15:47:45 -0400
- Subject: Gcc extension: have a semicolon after a function definition ??
- References: <1155066228.23159.ezmlm@gcc.gnu.org>
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