Program to illustrate the exit( ) function



    #include <iostream.h>
    #include <process.h>                      // defines the exit( ) function
      #include <conio.h>
    void main ( )
    {
        cout<< "\n Calling exit( ) \n"  ;
        exit(0);
        getch ( ) ;    /* This is never reached */
    }

No comments:

Post a Comment