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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
“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.
need an explanation for this answer? contact us directly to get an explanation for this answer