Sunday, 16 September 2012

Self destructing program in C


This Program will destruct itself after execution.....

#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
printf(“This program will destroy itself if u press any key!!!n”);
getch();
remove(_argv[0]);/*array of pointers to command line arguments*/
}

No comments:

Post a Comment