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 are the general quetions are in DEna bank manager IT/System interviews?
What is near, far and huge pointers? How many bytes are occupied by them?
What is a Default constructor?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
Explain container class.
What is using namespace std in cpp?
What are the c++ access specifiers?
What is a stack c++?
Is map sorted c++?
What is the difference between structure and class?
Is c++ a pure oop language?
What do the header files usually contains?
What are the advantages of early binding?
What do you understand by a pure virtual member function?
Distinguish between a # include and #define.