Reputation: 45
What is the meaning of the function return(0);
while writing code for a simple "hello world" program ?
Upvotes: 1
Views: 113
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
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