4The exit(1) statement returns 1 as exit code for the program. This is the int that main() returns. exit(0) is conventionally used for a normal exit and a non zero value is used when an error occurs. In order to use exit() you must include the header cstdlib.