Well... ok... will do the same thing as int main(void), but to declare a function without arguments, in C, is the same as telling the compiler it must accept ANY number of arguments in the function call, but ignore them.
For example:
This function can be called as:Code:int f() { return 0; }
And the compiler is ok with it... Try it...Code:x = f(); x = f(1); x = f(1, "fred"); x = f(1, "fred", 3.14, NULL); ...
In C++ the empty arguments list means 'void'.