How to write a program such that it will delete itself after
exectution?
Answer Posted / pranjali
I guess if your program name is program.c the last line of
your code should be the operating system call to to delete
the file "program.c".
once you compile it to get a .exe , the existance of
program.c is immeterial.
you will hv to take care of necessary error handling.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is the difference between an enumeration and a set of pre-processor # defines?
Why do we use using namespace std in c++?
How many types of comments are there in c++?
When do you call copy constructors?
What's the best free c++ profiler for windows?
Describe the advantage of an external iterator.
Why do we use classes in programming?
Write syntax to define friend functions in C++.
What are the operators in c++?
Is map ordered c++?
What is microsoft c++ redistributable?
What is the use of register keyword with the variables?
Can comments be nested?
What is the v-ptr?
What are namespaces in c++?