In GCC C compiler, we have nice feature to execute the certain function before and after main( ). So some startup code can be executed before main( ) starts, and some cleanup code can be executed after main() ends. For example, in the following program, StartupFunction( ) is called before main( ) and CleanupFunction( ) is called after main( ).




Functions executing before and after main( )

If you like this Article, then don’t forget to Click on Social likes buttons.