开发者

Xcode question for writing program

开发者 https://www.devze.com 2023-01-23 00:53 出处:网络
What is the meaning of the fu开发者_StackOverflow中文版nction return(0); while writing code for a simple \"hello world\" program ?Are you talking about the main function, and in which language?

What is the meaning of the fu开发者_StackOverflow中文版nction return(0); while writing code for a simple "hello world" program ?


Are you talking about the main function, and in which language?

If your talking about C, C++ it there is generally a return 0; at the end of any main().


That means that the program terminated fine, as in not in an error state. I am assuming you are coding in C++.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号