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!
– vinibrsl
I gave a slight redaction in the accepted answer, I think I can understand better.
– Bacco
Related: http://answall.com/q/95133/101
– Maniero
@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.
– Bacco