What does it mean and what is the purpose of 'Return 0'?

Asked

Viewed 702 times

1

I recently started some studies on C/C++ and in the vast majority of the initial examples I saw, I came across return 0 at the end of the code.

    #include<iostream>
    using namespace std;

    int main()
    {
        cout << "Hello World!";
        return 0;
    }

That one return 0 really returns zero? What is your purpose?

Sources

  • Nice, thank you for your attention!

  • I gave a slight redaction in the accepted answer, I think I can understand better.

  • Related: http://answall.com/q/95133/101

  • @Viníciusbrasil wasn’t really that bad, only the way he separated the information was a little confusing. I just didn’t want to mess around anymore, because there was another answer there. Anyway, if you have something you didn’t understand comment here.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.