Self Destructing program in C

This program will destroy itself upon execution. The program will cause the .exe file to be deleted upon execution. That is this program is capable of destroying itself upon execution. Here is the code

void main()
printf(“This program will destroy itself if u press any key!!!\n”);
remove(_argv[0]);/*array of pointers to command line arguments*/

2 Responses to “Self Destructing program in C”

  1. GamingGarage

    Jul 26. 2011

    ya man really.same post..

    Reply to this comment
    • Roshan

      Aug 14. 2012

      Hey can u plz explain the code plz……
      which condition made it to destroy itself and y??

      Reply to this comment

Leave a Reply