Tuesday, March 26, 2013

Write a c program too shutdown window operating system in TURBO C.

1. Write a c program too shutdown window operating system   in TURBO C.

void main(void)
{
system("shutdown -s");
}
Save the above .Let file name is close.c and compile and execute the above program. Now close the turbo c compiler and open the directory in window you have saved the close.c (default directory c:\tc\bin) and double click its exe file (close.exe).After some time your window will shutdown.

No comments:

Post a Comment