C function : atexit()
ANSI: C and C++
"atexit causes the defined function to be called when the program terminates. You can
register your termination function anywhere you like, but it will be called at
the time of program termination."
Header File: stdlib.h (C) or
cstdlib (C++)
ANSI: C and C++
Syntax:-
fun: is the function to be called at the termination of the
program.
A non zero is returned if it
fails and a zero is returned if it was successful.
program:-
output:-
Comments