Q:

IF YOU WANT TO EXECUTE C PROGRAM EVEN AFTER MAIN FUNCTION IS TERMINATED, WHICH FUNCTION CAN BE USED?

0

IF YOU WANT TO EXECUTE C PROGRAM EVEN AFTER MAIN FUNCTION IS TERMINATED, WHICH FUNCTION CAN BE USED?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

“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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now