Home
|
Tech FAQ
|
Interview Questions
|
Placement Papers
|
Tech Articles
|
Learn
|
Freelance Projects
|
Online Testing
|
Geeks Talk
|
Job Postings
 |
Knowledge Base
 |
Site Search
|
Add/Ask Question
GeekInterview.com
>
Tech FAQs
>
OOPS
Print
|
Question
:
How to write a program such that it will delete itself after exectution?
September 09, 2007 03:30:06
#2
Super C
Member Since: Visitor Total Comments: N/A
RE: How to write a program such that it will delete i...
#include <stdio.h>
main(int argc, char *argv[])
{
printf("Removing: %s...n", argv[0]);
remove(argv[0]);
}
Back To Question