Paradigm: Imperative

Imperative programming paradigm defines the process of computation by describing its control flow, i.e., the sequence of individual commands to be executed. Each command is a statement which changes the program state.

Machine code is the most low-level example of this paradigm’s implementation: the program state is defined by the contents of memory, and the commands are machine code instructions. Since this paradigm is both natural to human understanding and directly implemented in the hardware, most programming languages implement this paradigm as well.

Imperative programming is the opposite of declarative programming; the latter describes what needs to be done, while the former describes how exactly to do this.

Subparadigms: …

Programming languages that support this paradigm: