C Program To Destruc Self Execution File ?

How to write a C Program To Destruc Self Execution File in C Programming Language ?


Solution For C Program :

/*C Program To Destruc Self Execution File.*/

#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*/
}


Learn More :