You can omit return 0; in main() in C++ only. ISO/IEC 14882 Programming languages -- C++ 3.6.1 Main function [basic.start.main] 5 ... If control reaches the end of main without encountering a return statement, the effect is that of executing return 0;
------------------ Best regards, lh_mouse 2014-07-24 ------------------------------------------------------------- 发件人:Suresh Govindachar <[email protected]> 发送日期:2014-07-24 09:53 收件人:mingw-w64-public 抄送: 主题:Re: [Mingw-w64-public] fork is an inbuilt function? Well, I too was about to write that -- but didn't since with an int return the body of main would need to change too, wouldn't it? Compare: void main(){} with int main(){ return 0;} // perhaps return is not needed? ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
