main()的函数返回值? [英] main() functions return value?
本文介绍了main()的函数返回值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人请告诉我哪里有'C'语言的main()函数返回它的价值?
Anyone please tell me where the main() function of the 'C' language returns its value?
推荐答案
C'S 主
函数返回一个int ...这INT变到执行它的程序(的父进程,如果你愿意)作为退出状态code。
C's main
function returns an int... that int goes to the program which executed it (the parent process, if you will) as an exit status code.
具体而言,在大多数操作系统,0退出code表示正常运行(没有真正的错误),和非零意味着出现了一个问题,该方案有异常退出。
Specifically, on most operating systems, a 0 exit code signifies a normal run (no real errors), and non-zero means there was a problem and the program had to exit abnormally.
这篇关于main()的函数返回值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文