Write c program which shutdown the window operating system ?


Write the following program in TURBO C.

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

Save the above.
Let file name is ABC.c
and compile the above program.
Now close the turbo c compiler and open that directory in window you have saved the ABC.C (default directory c:\tc\bin) and double click on its exe file (ABC.C).
After some time your window operating system will shutdown.

Newer Post Older Post

Powered by Blogger.