int main() is standard, so it should be okay to use it; however, it works fine in Eclipse as well as in Visual Studio 2015, but I get a warning in Eclipse regarding the usage of int main().
I want to know why there is a different behaviour in the two programs.