Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

why there is return 0 used in c

The return value of main() becomes the exit status of the process.
Traditionally, an exit status of zero usually means “OK,” 
while any non-zero value indicates some kind of error. 
This is analogous with how many system calls likewise return zero 
or an error code.
 
PREVIOUS NEXT
Tagged: #return
ADD COMMENT
Topic
Name
4+1 =