Sunday 11 January 2009

Write c program which shutdown the window operating system?


Write
c program which shutdown the window operating system



#include

#include



int main (void){

   
system("shutdown -s");

    return 0;

}



Save the above c code by
any name. Let's assume file name is close.c and compiled the above program. Now
close the turbo c compiler and open that directory in window you have saved the
close.c (default directory is c:\tc\bin) and

No comments:

Post a Comment