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.
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.
Code Example |
---|
C :: mount cifs |
C :: memory layout in c |
C :: malloc contiguous 2d array |
C :: flip exis in dataframe |
C :: getchar |
C :: c check if character is an alphabet |
C :: how to malloc for matrix in c |
C :: how to read 2d array from a file in c |
C :: c remove last charachter from string |
C :: rust cross compile |
C :: how to empty array in c |
C :: function component with props |
C :: sockaddr_in c |
C :: pasar a binario recursivo |
C :: why do you jerk while falling aslee |
C :: fread |
C :: command args c |
C :: how to open form in vb.net |
C :: hash function in c |
C :: size of float in c |
C :: create syscall |
C :: fine print serial key |
C :: ouverture du fichier c |
C :: <fileset joomla |
C :: bool print variable in c |
C :: until command lldb |
C :: curl ftp upload file to directory |
C :: gnunet |
C :: cut first part of string c |
C :: copy a number of characters to another string in c without standard library |