C exit function

http‮//:s‬www.lautturi.com
C exit function

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);
}
Created Time:2017-08-28 16:04:10  Author:lautturi