Q:

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

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

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)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHAT IS EXIT() FUNCTION IN C?... >>
<< WHAT IS STATIC FUNCTION IN C?...