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 apps are written in c++?

1039


Why cout is used in c++?

985


How do I use arrays in c++?

960


What are the manipulators in c++?

990


Mention the purpose of istream class?

1075


Why do we use iterators?

1020


What is format for defining a structure?

1041


What are pointers used for c++?

1019


Can member functions be private?

964


Explain the difference between overloading and overriding?

1095


What is a block in c++?

993


What is the difference between the functions rand(), random(), srand() and randomize()?

1221


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2297


What are the various access specifiers in c++?

989


Show the declaration for a pointer to function returning long and taking an integer parameter.

1083