1.

Is it possible to execute code even after the program exits the main() function?

Answer»

Well, in both C & C++, the functions which are registered USING the at EXIT() function can be called after main() returns. In C++, the static destructors can be called even after the main() function has been called.

Note: Did you know that the C language was not called that since its inception. This is the evolution of the C language:

ALGO -> BCPL -> B -> Tradition C -> K&R C -> ANSI C -> ANSI/ISO C -> C99. Well, here is the LIST of information technology INTERVIEW questions and ANSWERS to help you get a grasp on the latest trends in this field.



Discussion

No Comment Found