The exit function is used to interrupt the execution of the program and exit the main function immediately.
#include <stdio.h>
#include <stdlib.h>
int main () {
printf("Program startup\n");
printf("Exit procedure \n");
exit(0);
printf("Program End.. \n");
return(0);
}