I'm currently working myself through an existing project and came to the following snippet:
int main(int argc, char** argv);
int main(int argc, char** argv)
{
...
}
and thats basically the whole file. Now, to my understanding, the first function declaration doesn't make sense at all: There is no other function between the provided lines that tries to call main.
Now my question is: Is there any case that I'm not aware of that would benefit from the first declaration (maybe with interdependencies to other files)? Or could it be safely deleted? Because of the size of the project, I'm currently not really able to test it, and I'm curious.