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
Which function cannot be overloaded c++?
What is the full form of dos?
What is string in c++ programming?
What is a set in c++?
what is the use of void main() in C++ language?
What is the use of class in c++?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
Can turbo c++ run c program?
Write is a binary search tree? Write an algo and tell complexity?
Does there exist any other function which can be used to convert an integer or a float to a string?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
Explain the isa and hasa class relationships. How would you implement each?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What do you mean by global variables?