The purpose of
main 's return value is to return an exit status to the operating system. In standard C, the only valid signatures for
main are:
int main(void) and
int main(
int argc, char **argv) The form you're using:
int main() is an old style declaration that indicates
main takes an unspecified number of arguments.
read more >>