Home
menubar
rss_feed

Previous Reference C++ Reference <cstdlib> Next Reference




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:








Previous Reference C++ Reference <cstdlib> Next Reference




Home | Reference | Play Games! | Blog | Forum | Site Map | Contact Us


shadow bottom image