Final answer:
The exit() function is part of the stdlib.h library in C and is used to terminate a program and return a status code to the operating system. It takes one parameter, which is the status code.
Step-by-step explanation:
The exit() function is part of the stdlib.h library in C programming language. It is used to terminate a program and return a status code to the operating system. The exit() function takes one parameter, which is the status code.
Here is an example:
#include <stdlib.h>
int main() {
// Program code
exit(0);
return 0;
}