Program startup and termination are facilitated by using two functions: main and exit. Other startup and termination code may be executed.