Answers for "why return 0 in c\"

C
0

why do we need return 0 in c?

The return value is the exit code of your program, the shell (or any other 
application that ran it) can read and use it.
The 0 exit code is a widely accepted convention for 'OK the program execution 
was successfull'. And for non-zero numbers, it conventionally means the 
program didn't execute successfully or there is an error.
Posted by: Guest on March-21-2022
1

why do you need the return 0 c

#define EXIT_SUCCESS    0
#define EXIT_FAILURE    1
Posted by: Guest on January-12-2021

Code answers related to "C"

Browse Popular Code Answers by Language