+ 1
How to use exit ()?
Which header file should be included?
1 Respuesta
+ 1
not sure which programming language you are referring to but I think cstdlib should work for c++
example:
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
cout<<"Program will exit";
exit(1); // Returns 1 to the operating system
cout<<"Never executed";
}