Well, if void main() is so standard and it must be shot down, so why then it is not deprecated?
|You're the kind of coder we all pray we never have to work with.|
Company will say what is standard what is not. How many per project you will write a function void main() ? Like...around... once?
| Please, please understand that the world is bigger than YOUR chosen compiler running on YOUR chosen OS running on YOUR chosen hardware.|
You should be working with green peace not as a coder. You know, they are all about saving animals, environment, they care about the world. Different OS, different compiler, different techniques, different needs, different standards. If I am working with the game, I do not give a damn thing how other people programed on-board computer for automobile.
|You'd limit yourself to the few C++ compilers that implement this non-standard language extension. Many compilers will refuse to compile your programs. Try gcc online: http://ideone.com/E75Ua|
Exactly, if not by the company, then by the compiler I will be told to use int main instead of void main. Big deal, one out of thousands compiler errors.
|You can call programs from other programs. I think returning EXIT_SUCCESS (0) or EXIT_FAILURE can help to trigger some warnings in the parent executable.|
If your program will hit some critical errors, it probably will be caught by try-catch blocks and the program will exit before the return of int main value.
Void main actually returns a value,but I am not sure what it exactly returns, but I am sure there is some logical in it.
|Because new people think they know better than those who have used C++ for years which results in comments like the one Ortonas made.|
You misinterpreting what I wrote. The moral of my story was "If you are not consider what program will return, then just leave it to compiler to deal with and use void main()."