Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between an enumeration and a set of pre-processor # defines?

1393


Why do we use using namespace std in c++?

1088


How many types of comments are there in c++?

989


When do you call copy constructors?

1157


What's the best free c++ profiler for windows?

1088


Describe the advantage of an external iterator.

1042


Why do we use classes in programming?

1042


Write syntax to define friend functions in C++.

1080


What are the operators in c++?

1119


Is map ordered c++?

1100


What is microsoft c++ redistributable?

1101


What is the use of register keyword with the variables?

944


Can comments be nested?

1034


What is the v-ptr?

1167


What are namespaces in c++?

1100