title Startup and Termination (C++) | Microsoft Docs ms.custom ms.date 11/04/2016 ms.reviewer ms.suite ms.technology devlang-cpp ms.tgt_pltfrm ms.topic language-reference dev_langs C++ ms.assetid c6568ee6-40ab-4ae8-aa44-c99e232f64ac caps.latest.revision 7 author mikeblome ms.author mblome manager ghogen translation.priority.ht cs-cz de-de es-es fr-fr it-it ja-jp ko-kr pl-pl pt-br ru-ru tr-tr zh-cn zh-tw 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