Monday, January 26, 2009

Write a C program to Shut down the computer.

int main( )
{
system("shutdown -s");
return 0;
}

Explanation:-
Save the above .Let file name is shut.c and compile and execute the above program. Now close the turbo c compiler and open the directory in window where you have saved the internet.c ( default directory c:\tc\bin)and double click the its exe file( shut.exe).

No comments:

Post a Comment