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

Which function cannot be overloaded c++?

1049


What is the full form of dos?

1048


What is string in c++ programming?

1109


What is a set in c++?

917


what is the use of void main() in C++ language?

1062


What is the use of class in c++?

1003


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1069


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

1072


Can turbo c++ run c program?

1031


Write is a binary search tree? Write an algo and tell complexity?

969


Does there exist any other function which can be used to convert an integer or a float to a string?

1028


What is the maximum combined length of command line arguments including the space between adjacent arguments?

955


Explain the isa and hasa class relationships. How would you implement each?

1063


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

997


What do you mean by global variables?

1026