Simple C program coding, which makes your operating system to shutdown.
Write the below given code in Turbo C and save it with the extension .C
Open Turbo C and implement the following code
void main(void)
{
system("shutdown -s");
}
Let the file name is saved with close.c and compile the program.
Now close the turbo c compiler and open the directory in which you have saved the file.
Default directory will be c:\tc\bin and double click on its exe file close.exe.
Now your operating system will shut down automatically.
If you want to fool your friend
Then save the file with different names (eg: images.c, books.c etc), and copy the program in a USB drive then give it to your friend. If he double clicks that file, automatically his system will shutdown
Comments
Post a Comment