title Startup and Termination (C++) | Microsoft Docs ms.custom ms.date 11/04/2016 ms.technology cpp-language ms.topic language-reference dev_langs C++ ms.assetid c6568ee6-40ab-4ae8-aa44-c99e232f64ac author mikeblome ms.author mblome ms.workload cplusplus Startup and Termination (C++) Program startup and termination are facilitated by using two functions: main and exit. Other startup and termination code may be executed. See Also Basic Concepts