Jump to content

The Wikibooks community is developing a policy on the use of generative AI. Please review the draft policy and provide feedback on its talk page.

Coding Cookbook/Initialization

From Wikibooks, open books for an open world

Initialization is the first stage that a computer program performs to prepare itself for operation. A computer programmer may use a basic template that contains the initialization code for the program.

Stages of initialization

[edit | edit source]

The initialization stage of a program includes:

Procedural programming languages

[edit | edit source]

For a procedural programming language, the initialization code usually follows the declaration headers, or at the beginning of the main startup function or within constructor blocks, depending on the programming language being used.