The Pelles C, new project wizard, for a console app generates this correct example:
int main(int argc, char *argv[])
{
printf("Hello, world!\n");
return 0;
}
If you don't need the arguments, this is acceptable
int main(void)
{
printf("Hello, world!\n");
return 0;
}