什么是价值,从main()中的C / C返回的目的++? [英] What is the purpose of the returning of a value from main() in C/C++?

查看:115
本文介绍了什么是价值,从main()中的C / C返回的目的++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能显示的文件:结果
  的main()函数的返回值?结果
  什么都要用C的main()的返回/ C ++?

什么是从价值回归的目的,主要()的语言C和C ++?

What is the purpose of the returning of a value from main() in the languages C and C++?

返回值如何帮助我们呢?

How the return value helps us?

能否返回值可以用来实现什么重要的事?

Can the return value be used to achieve anything important?

推荐答案

这是退出状态 。它通常用来发信号到OS的进程是否成功与否在任何它在做什么。

It's the exit status. It's typically used to signal to the OS whether the process was successful or not in whatever it was doing.

这篇关于什么是价值,从main()中的C / C返回的目的++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆