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 default width for ouputting a long integer using the insertion operator?
What is istream c++?
Why is c++ still best?
What is std :: flush?
Why do we need runtime polymorphism in c++?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
Why c++ is so important?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
How java is different from c and c++?
What is algorithm in c++ programming?
What's c++ used for?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
What are the restrictions apply to constructors and destructors?
What is a c++ object?