what is atexit in c++?
The atexit() function in C++ registers a function to be called on normal program termination. The atexit() function in C++ registers a function to be called on normal program termination.