Originally Posted by
jimblumberg
Several problems. First implementing functions inside other functions is not allowed.
It is allowed, as an extension, using GCC... But, of couse, it is not advisable:
Code:
#include <stdio.h>
int main( void )
{
void show( void ) { puts( "Hello" ); }
show();
}
Compiling and linking:
Code:
$ cc -O2 -o test test.c
$ ./test
Hello