最終更新:2017-08-25 (金) 15:29:57 (2732d)
main
Top / main
C言語
int main(int argc, char *argv[]) { return 0; }
return
C90のmain
http://stackoverflow.com/questions/204476/what-should-main-return-in-c-and-c
- The standard defines 3 values for returning that are strictly conforming (that is, does not rely on implementation defined behaviour)
- 0 and EXIT_SUCCESS for a successful termination, and EXIT_FAILURE for an unsuccessful termination.
- Any other values are non-standard and implementation defined.