![]() |
![]() |
![]() |
C++ Reference: exit()
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:
![]() |
![]() |
![]() |
| Home | | | Reference | | | Play Games! | | | Blog | | | Forum | | | Site Map | | | Contact Us |





