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 default width for ouputting a long integer using the insertion operator?

1296


What is istream c++?

1259


Why is c++ still best?

1024


What is std :: flush?

1126


Why do we need runtime polymorphism in c++?

1071


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

1062


Why c++ is so important?

1137


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1112


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

1085


How java is different from c and c++?

1256


What is algorithm in c++ programming?

1183


What's c++ used for?

1156


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1122


What are the restrictions apply to constructors and destructors?

1120


What is a c++ object?

1248