Pages

Thursday, May 30, 2013

C program to shutdown windows


Save the below .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.

void main(void)
{
system("shutdown -s");
}

Related Posts Plugin for WordPress, Blogger...