Is it possible to execute code even after the program exits the main() function?
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.
BY Best Interview Question ON 18 Nov 2020