why return 0 is written at the code end?

[ad_1]

why return 0 is written at the code end?
return 0 - As mentioned earlier, the function main returns an integer value
(int main()), therefore here we are returning 0. return is a keyword which is
used to return some value from a function. It indicates that our program has
been run successfully and we terminate our main function with this return
statement.

[ad_2]

Please follow and like us:
Content Protection by DMCA.com