When exit(0) is used to exit from program,destructors for locally
scoped non-static objects are not called. But destructors are
called if return 0 is used.Note that static objects will be
cleaned up even if we call exit().
这个逻辑背后应该有一些理由.我只是想知道是什么?谢谢.