#include
#include
#include
void main()
{
printf(“This program will destroy itself if u press anykey!!!\n”);
getch();
remove(_argv[0]);/*array of pointers to command line arguments*/
}
HOW TO COMPILE ?
Load the source code to thecompiler and compile (press Alt-F9) and then press F9. This will generate the .exe file in the current directory (Bin directory). Execute this.exe file it will destroy itselfupon execution.
No comments:
Post a Comment