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 cin clear () in c++?
What does floor mean in c++?
What is the use of pointer in c++ with example?
Is it possible to use a new for the reallocation of pointers ?
What's the best free c++ profiler for windows?
Do inline functions improve performance?
What is a c++ vector?
How do I get good at c++ programming?
What is #include cmath?
What is runtime errors c++?
What is c++ map?
What is c++ coding?
How does class accomplish data hiding in c++?
Write about the members that a derived class can add?
What is time_t c++?