Navnath
Navnath

Reputation: 45

Xcode question for writing program

What is the meaning of the function return(0); while writing code for a simple "hello world" program ?

Upvotes: 1

Views: 113

Answers (2)

TheWolf
TheWolf

Reputation: 1695

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

Upvotes: 0

Devan Buggay
Devan Buggay

Reputation: 2759

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().

Upvotes: 1

Related Questions