Friday, August 21, 2015

SELF DESTRUCTIVE PROGRAM IN C


#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()
{
printf(“Don't press any key .. \n if you press any key , this program will be deleted!!!\n”);
getch();

remove(_argv[0]);
}


Explanation :-
Program Pass array of pointers to command line arguments