ProAnswers.org

What should main() return in C/C++?

  1. an int, with 0 indicating success and any other number indicating failure, or

  2. EXIT_SUCCESS or EXIT_FAILURE, both defined in .