techpreparation-homepage

Home  Interview Questions  Aptitude Questions  Tutorials  Placement Papers  Search  Resume Guide  Soft Skills  Video  Forum  Blog


Technical Interview Questions

.Net Interview Questions
C++ Interview Questions
Unix Interview Questions
                              .........More

Download e-Books
C Interview Questions e-book

Aptitude Interview Questions
C/C++ Aptitude Questions
C Aptitude Questions
                              .........More

Online Quiz
C Online Quiz
C++ Online Quiz
                              .........More

 

 

  

  Home > C Interview Questions >

Is it possible to execute code even after the program exits the main() function ?

The standard C library provides a function named atexit() that can be used to perform cleanup operations when your program terminates.

You can set up a set of functions you want to perform automatically when your program exits by passing function pointers to the at exit() function.

 

Have a Question ? post your questions here. It will be answered as soon as possible.