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.