InterviewSolution
| 1. |
Is It Possible To Execute Code Even After The Program Exits The Main() Function? |
|
Answer» There is a standard C function NAMED atexit() for this purpose that can be used to perform some operations when your program exiting. You can register some functions with atexit() to be EXECUTED at the time of termination. Here's an example: There is a standard C function named atexit() for this purpose that can be used to perform some operations when your program exiting. You can register some functions with atexit() to be executed at the time of termination. Here's an example: |
|