C Standard Libraries C++
exit()
Declaration
void exit(int iStatus);
Description
Terminates the process and cleans up by calling the functions registered with the atexit() function. The passed-in argument, "iStatus," is used to set the status value.
Example
#include <cstdlib>
int main() {
exit(3);
return 0;
}
Output