✏️ Explanatory Question
If you want to execute C program even after main function is terminated, which function can be used?
- atexit() function can be used if we want to execute any function after program is terminated normally.
- Syntax: int atexit (void (*func)(void));
- The function “func” will be called automatically without any arguments once program is terminated normally.