That would be a prototype. By convention, main is already "defined",
and depending on how close to ANSI C you set the compilation options
you may or may not get errors.
The standard way to do main is
Code:
int main(int argc, char *argv[]){
return 0;
}
You really should consider this to be THE way to write main().
Some early DOS compilers like Turbo C would actually complain if you did not use argc and argv in your code and you declared them as main() arguments like above. Which IMO is nonsense.
Some compilers will let you do:
Generally, you want you code to return success/failure to the shell, so this is not a great idea.