imperative programming

noun phrase

Meaning

A programming paradigm that uses statements to change a program's state by explicitly detailing the sequence of commands the computer must execute.

Examples

  • C and Java are classic examples of languages that support the imperative programming paradigm.
  • Students often find imperative programming intuitive because it mirrors the step-by-step logic of a human following a list of tasks.

Synonyms: procedural programming, command-based coding