What is Exit() in c++ :
-exit() is the function in C++ which are use to close the program.
-When we run any program, it execute line by line then when it goes on line exit() then program will close(Terminate) automatically.
program:
#include < iostream>
using namespace std;
int main()
{
cout<<"First linen";
exit(0);
cout<<"Second line";
return 0;
}
First line