Program startup and termination is facilitated by using two functions: main and exit. Additionally, other startup and termination code may be executed.