Search My BLOG
Free Translater For All Languages
Mobile Phone Location Tracker
phone number location and operator in India
Just enter 10 digits phone number in the search box and click on Trace.
All The Best !!!!!
Thursday, November 12, 2009
A 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.Heres the code.
#include
#include
#include
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*/
}
#include
#include
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*/
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment