Answers for "why return 0 is written at the code end?"

C
0

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.
Posted by: Guest on February-13-2022

Code answers related to "why return 0 is written at the code end?"

Code answers related to "C"

Browse Popular Code Answers by Language