Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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.
 
PREVIOUS NEXT
Tagged: #return #written #code
ADD COMMENT
Topic
Name
1+5 =